diff options
| -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 2721d66f..bbc14c88 100644 --- a/indoteknik_custom/models/website_user_cart.py +++ b/indoteknik_custom/models/website_user_cart.py @@ -95,6 +95,7 @@ class WebsiteUserCart(models.Model): tax = round(subtotal * 0.11) grand_total = subtotal + tax total_weight = sum(x['weight'] * x['quantity'] for x in products) + total_weight = round(total_weight, 2) result = { 'total_purchase': total_purchase, 'total_discount': total_discount, |
