fix: change bundling item edit from item_id to total_net_price
parent
18dc15e442
commit
60167cd807
|
@ -196,7 +196,7 @@ export function mappingRevertTransaction(data, type) {
|
||||||
) ?? 0) * +item.qty;
|
) ?? 0) * +item.qty;
|
||||||
const totalAndBundlingRatio = total_price / bundlingTotalPrice;
|
const totalAndBundlingRatio = total_price / bundlingTotalPrice;
|
||||||
item.bundling_items = item.item.bundling_items?.map((bundling) => {
|
item.bundling_items = item.item.bundling_items?.map((bundling) => {
|
||||||
if (bundling.item_id) return bundling;
|
if (bundling.total_net_price) return bundling;
|
||||||
|
|
||||||
const basePrice =
|
const basePrice =
|
||||||
(bundling.item_rates ?? bundling.base_price) *
|
(bundling.item_rates ?? bundling.base_price) *
|
||||||
|
|
Loading…
Reference in New Issue