fix: taxes on cart detail
This commit is contained in:
@@ -87,7 +87,9 @@ def cart(request, *args, **kwargs):
|
||||
for item in items:
|
||||
price = ProductPrice.objects.filter(product=item.product, current=True).first()
|
||||
base_total += price.price * item.quantity
|
||||
tax_total += round(price.price * Decimal(price.tax.value / 100), 2)
|
||||
tax_total += round(
|
||||
price.price * Decimal(price.tax.value / 100) * item.quantity, 2
|
||||
)
|
||||
|
||||
total = base_total + tax_total
|
||||
|
||||
|
||||
Reference in New Issue
Block a user