summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfixco_custom/models/detail_order.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py
index 869fc39..8ed85ba 100755
--- a/fixco_custom/models/detail_order.py
+++ b/fixco_custom/models/detail_order.py
@@ -238,8 +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('sku')
+ 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)