diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-29 14:38:17 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-08-29 14:38:17 +0700 |
| commit | 00b552bcdd7a689cf347aa2b882ec6796f42bc20 (patch) | |
| tree | c8683d2fabc7e8f96bfe27e9a612f31d27941082 | |
| parent | 1b2d9c35be0e48e4aadc8d6e2578fd623ad7d03a (diff) | |
fix voucher
| -rw-r--r-- | indoteknik_custom/models/website_user_cart.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py index c233dfd7..0af22d47 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -131,6 +131,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 tax = round(subtotal * 0.11) grand_total = subtotal + tax |
