From fb45665e9598297dfd77054c1c3ff7c2ca9bc67d Mon Sep 17 00:00:00 2001 From: Azka Nathan Date: Tue, 30 Jul 2024 15:17:07 +0700 Subject: fix bug email reminder --- indoteknik_custom/models/website_user_cart.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index ff8cf65d..e4b10178 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -178,10 +178,9 @@ class WebsiteUserCart(models.Model): discount_amount = line.discount_amount break - product_discount = subtotal_promo if cart.program_line_id else subtotal + product_discount = subtotal_promo if cart.program_line_id or check['is_flashsale'] else subtotal total_discount += product_discount if check['is_flashsale'] == False and cart.product_id.default_code and not 'BOM' in cart.product_id.default_code: - product_discount = subtotal - (subtotal * (discount_amount / 100.0)) voucher_product = subtotal * (discount_amount / 100.0) total_voucher += voucher_product -- cgit v1.2.3