From d2268706824167cd23dd3ea9e22acc241bc35122 Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 20 Jan 2026 11:34:14 +0700 Subject: push payment bill --- fixco_custom/models/detail_order.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'fixco_custom/models/detail_order.py') diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py index c256d8c..d392b30 100755 --- a/fixco_custom/models/detail_order.py +++ b/fixco_custom/models/detail_order.py @@ -238,7 +238,8 @@ class DetailOrder(models.Model): """Combine quantities of the same products from multiple orders""" product_quantities = {} for item in items: - key = item.get('masterSku') + # key = item.get('masterSku') + key = item.get('sku') if key in product_quantities: product_quantities[key]['quantity'] += item.get('quantity', 0) product_quantities[key]['actualPrice'] += item.get('actualPrice', 0) -- cgit v1.2.3