diff options
| author | Rafi Zadanly <zadanlyr@gmail.com> | 2024-03-06 10:40:21 +0700 |
|---|---|---|
| committer | Rafi Zadanly <zadanlyr@gmail.com> | 2024-03-06 10:40:21 +0700 |
| commit | b774b4d834ee8f77b5d2782e88ed910d6778b9be (patch) | |
| tree | 48c06bc14bac1694f78d60f4dd79cf8efb9e46d3 /indoteknik_custom/models/promotion | |
| parent | d569804844ee77f9f08879dda8c3f1e292470813 (diff) | |
| parent | de5a35b272b4c84b5eb7ab8d9d429a9cbae46381 (diff) | |
Merge branch 'production' into feature/web-sale-approval
Diffstat (limited to 'indoteknik_custom/models/promotion')
| -rw-r--r-- | indoteknik_custom/models/promotion/sale_order.py | 2 |
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 |
