summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafi Zadanly <zadanlyr@gmail.com>2024-03-05 16:37:40 +0700
committerRafi Zadanly <zadanlyr@gmail.com>2024-03-05 16:37:40 +0700
commit20042c0435492373f80a1e1d768185a2cd9e6f88 (patch)
treef4e2934e2a989e045ecee348e5c310f9e49731f0
parent3b74c7064eaad188e92333cafcf73cc1e500f58b (diff)
Fix sale order checkout api error promotion program
-rw-r--r--indoteknik_custom/models/promotion/sale_order.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/promotion/sale_order.py b/indoteknik_custom/models/promotion/sale_order.py
index 42e972d0..cb9a6f92 100644
--- a/indoteknik_custom/models/promotion/sale_order.py
+++ b/indoteknik_custom/models/promotion/sale_order.py
@@ -26,7 +26,7 @@ class SaleOrder(models.Model):
else:
all_products = self._merge_promotion_products(promotion)
- promotion_price = promotion['price']['price_discount']
+ promotion_price = promotion['price']['price_discount'] * line.quantity * 1.11
promotion_amt_total = sum(product['price']['price'] * product['qty'] for product in all_products)
promotion_used_price = 0