fix: wrong price calc
This commit is contained in:
parent
ab26a52c48
commit
5de762bb72
2 changed files with 4 additions and 3 deletions
|
|
@ -237,7 +237,7 @@ onMounted(async () => {
|
|||
const finalPriceNoVat =
|
||||
finalPriceWithVat / (1 + (config.value?.vat || 0.07));
|
||||
|
||||
const price = finalPriceNoVat * v.amount;
|
||||
const price = finalPriceNoVat * v.amount - v.discount;
|
||||
const vat =
|
||||
(finalPriceNoVat * v.amount - v.discount) *
|
||||
(config.value?.vat || 0.07);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue