fix: change bundling item edit from item_id to total_net_price

pull/108/head
shancheas 2024-10-09 12:49:34 +07:00
parent 18dc15e442
commit 60167cd807
1 changed files with 1 additions and 1 deletions

View File

@ -196,7 +196,7 @@ export function mappingRevertTransaction(data, type) {
) ?? 0) * +item.qty;
const totalAndBundlingRatio = total_price / bundlingTotalPrice;
item.bundling_items = item.item.bundling_items?.map((bundling) => {
if (bundling.item_id) return bundling;
if (bundling.total_net_price) return bundling;
const basePrice =
(bundling.item_rates ?? bundling.base_price) *