fix: wrong vat excluded calc
This commit is contained in:
parent
7e84f32742
commit
ec61c73342
2 changed files with 2 additions and 2 deletions
|
|
@ -253,7 +253,7 @@ function getPrice(
|
||||||
a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat;
|
a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat;
|
||||||
a.vatExcluded = c.product.calcVat
|
a.vatExcluded = c.product.calcVat
|
||||||
? a.vatExcluded
|
? a.vatExcluded
|
||||||
: precisionRound(a.vat + vat);
|
: precisionRound(a.vatExcluded + vat);
|
||||||
a.finalPrice = precisionRound(
|
a.finalPrice = precisionRound(
|
||||||
a.totalPrice -
|
a.totalPrice -
|
||||||
a.totalDiscount +
|
a.totalDiscount +
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ onMounted(async () => {
|
||||||
a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat;
|
a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat;
|
||||||
a.vatExcluded = c.product.calcVat
|
a.vatExcluded = c.product.calcVat
|
||||||
? a.vatExcluded
|
? a.vatExcluded
|
||||||
: precisionRound(a.vat + vat);
|
: precisionRound(a.vatExcluded + vat);
|
||||||
a.finalPrice = precisionRound(
|
a.finalPrice = precisionRound(
|
||||||
a.totalPrice -
|
a.totalPrice -
|
||||||
a.totalDiscount +
|
a.totalDiscount +
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue