diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-20 11:34:14 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2026-01-20 11:34:14 +0700 |
| commit | d2268706824167cd23dd3ea9e22acc241bc35122 (patch) | |
| tree | bf46314de8b23f8c164f2f094e2ef50fb4908f7f /fixco_custom/models/detail_order.py | |
| parent | d90a7762d13adf43520ea006a2ab9d3034dfdd15 (diff) | |
push payment bill
Diffstat (limited to 'fixco_custom/models/detail_order.py')
| -rwxr-xr-x | fixco_custom/models/detail_order.py | 3 |
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) |
