fix: wrong vat excluded calc

This commit is contained in:
Methapon2001 2025-01-23 09:25:20 +07:00
parent 7e84f32742
commit ec61c73342
2 changed files with 2 additions and 2 deletions

View file

@ -253,7 +253,7 @@ function getPrice(
a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat;
a.vatExcluded = c.product.calcVat
? a.vatExcluded
: precisionRound(a.vat + vat);
: precisionRound(a.vatExcluded + vat);
a.finalPrice = precisionRound(
a.totalPrice -
a.totalDiscount +

View file

@ -264,7 +264,7 @@ onMounted(async () => {
a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat;
a.vatExcluded = c.product.calcVat
? a.vatExcluded
: precisionRound(a.vat + vat);
: precisionRound(a.vatExcluded + vat);
a.finalPrice = precisionRound(
a.totalPrice -
a.totalDiscount +