diff options
Diffstat (limited to 'fixco_custom/models/detail_order.py')
| -rwxr-xr-x | fixco_custom/models/detail_order.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/fixco_custom/models/detail_order.py b/fixco_custom/models/detail_order.py index a01e7a1..8df3687 100755 --- a/fixco_custom/models/detail_order.py +++ b/fixco_custom/models/detail_order.py @@ -247,8 +247,8 @@ class DetailOrder(models.Model): } if partner == 281: data['marketplace_discount'] = total_discounts - data['marketplace_tax'] = total_tax - data['delivery_amount'] = total_shipping_fee + # data['marketplace_tax'] = total_tax + # data['delivery_amount'] = total_shipping_fee return data @@ -257,7 +257,9 @@ class DetailOrder(models.Model): product_quantities = {} for item in items: - key = item.get('sku') + key = item.get('sku', "") + if key == "" or key == False: + key = item.get('masterSku', "") qty = item.get('quantity', 0) price = item.get('actualPrice', 0) |
