summaryrefslogtreecommitdiff
path: root/fixco_custom/models/detail_order.py
diff options
context:
space:
mode:
Diffstat (limited to 'fixco_custom/models/detail_order.py')
-rwxr-xr-xfixco_custom/models/detail_order.py3
1 files changed, 2 insertions, 1 deletions
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)