fix: wrong condition

This commit is contained in:
Methapon2001 2024-12-26 16:39:25 +07:00
parent 8a071e61a6
commit 34ede08244

View file

@ -178,7 +178,7 @@ onMounted(async () => {
}))
.reduce(
(a, c) => {
const priceNoVat = c.product.calcVat
const priceNoVat = c.product.vatIncluded
? c.pricePerUnit / (1 + (config.value?.vat || 0.07))
: c.pricePerUnit;
const priceDiscountNoVat = priceNoVat * c.amount - c.discount;