diff options
| -rw-r--r-- | indoteknik_custom/models/promotion/promotion_program_line.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indoteknik_custom/models/promotion/promotion_program_line.py b/indoteknik_custom/models/promotion/promotion_program_line.py index cb231889..4bf50ac9 100644 --- a/indoteknik_custom/models/promotion/promotion_program_line.py +++ b/indoteknik_custom/models/promotion/promotion_program_line.py @@ -101,8 +101,8 @@ class PromotionProgramLine(models.Model): weight = sum(x['package_weight'] for x in merged_products) # Sum of products and free products in 1 package quantity - products_total = sum(x['price']['price_discount'] * x['qty'] / qty for x in products) - free_products_total = sum(x['price']['price_discount'] * x['qty'] / qty for x in free_products) + products_total = sum(x['price']['price'] * x['qty'] / qty for x in products) + free_products_total = sum(x['price']['price'] * x['qty'] / qty for x in free_products) package_price = products_total + free_products_total response = { |
