summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/website_user_cart.py
diff options
context:
space:
mode:
authorIT Fixcomart <it@fixcomart.co.id>2025-01-13 10:27:17 +0000
committerIT Fixcomart <it@fixcomart.co.id>2025-01-13 10:27:17 +0000
commit095dd98d3b5ea0f60497d6074eb04502df024415 (patch)
treeacc36cfa86d66b4e230aa5cf6830e2c6724d77a9 /indoteknik_custom/models/website_user_cart.py
parent46e968a3b28c00aa74e6f09b451d5a87e8523043 (diff)
parent1c9308c1a18bd89612dc7fca5726cbf96c28deed (diff)
Merged in iman/pengajuan-tempo (pull request #264)
Iman/pengajuan tempo
Diffstat (limited to 'indoteknik_custom/models/website_user_cart.py')
-rw-r--r--indoteknik_custom/models/website_user_cart.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/indoteknik_custom/models/website_user_cart.py b/indoteknik_custom/models/website_user_cart.py
index 44393cf1..8da716a1 100644
--- a/indoteknik_custom/models/website_user_cart.py
+++ b/indoteknik_custom/models/website_user_cart.py
@@ -163,7 +163,7 @@ class WebsiteUserCart(models.Model):
voucher_shipping_info = voucher_shipping.apply(order_line)
discount_voucher_shipping = voucher_shipping_info['discount']['all']
- tax = round(subtotal * 0.11)
+ tax = round(subtotal * 0.12)
grand_total = subtotal + tax
total_weight = sum(x['weight'] * x['quantity'] for x in products)
total_weight = round(total_weight, 2)
@@ -240,7 +240,7 @@ class WebsiteUserCart(models.Model):
total_voucher += voucher_product
if total_discount > 0:
- ppn = total_discount * 0.11
+ ppn = total_discount * 0.12
return {
'total_discount': self.format_currency(total_discount),
'total_voucher': self.format_currency(total_voucher),
@@ -352,7 +352,7 @@ class WebsiteUserCart(models.Model):
discounted_price = fixed_price - (fixed_price * discount / 100)
- final_price = discounted_price / 1.11
+ final_price = discounted_price / 1.12
return {
'price': final_price,