fix: wrong price calc

This commit is contained in:
Methapon2001 2025-01-24 20:57:41 +07:00
parent ab26a52c48
commit 5de762bb72
2 changed files with 4 additions and 3 deletions

View file

@ -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);