fix: wrong condition
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s

This commit is contained in:
Methapon2001 2025-09-16 10:11:02 +07:00
parent de33d03631
commit 25a4b50f8e

View file

@ -379,7 +379,7 @@ const flowAccount = {
quantity: v.amount,
discountAmount: v.discount,
total:
precisionRound(v.pricePerUnit * (1 + (v.vat === 0 ? VAT_DEFAULT : 0))) * v.amount -
precisionRound(v.pricePerUnit * (1 + (v.vat > 0 ? VAT_DEFAULT : 0))) * v.amount -
(v.discount ?? 0),
vatRate: v.vat === 0 ? 0 : Math.round(VAT_DEFAULT * 100),
})),