diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-04 17:12:38 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-09-04 17:12:38 +0700 |
| commit | 1bb074bb8f63072fb990c57c18986c50981f1402 (patch) | |
| tree | 5b466fca04cc421fae058c743db94af25e479d7b /indoteknik_custom/models/website_user_cart.py | |
| parent | 0222d907c08ef27dd8d3b303b55d70542cbeb788 (diff) | |
fix voucher shipping
Diffstat (limited to 'indoteknik_custom/models/website_user_cart.py')
| -rw-r--r-- | indoteknik_custom/models/website_user_cart.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index 0af22d47..b0cf47f7 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -130,8 +130,7 @@ class WebsiteUserCart(models.Model): if voucher_shipping: voucher_shipping_info = voucher_shipping.apply(order_line) - discount_voucher_shipping = voucher_shipping_info['discount']['all'] - subtotal -= discount_voucher_shipping + discount_voucher_shipping = voucher_shipping_info['discount']['all'] tax = round(subtotal * 0.11) grand_total = subtotal + tax |
