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

This commit is contained in:
Methapon2001 2025-09-15 16:43:01 +07:00
parent 1486ce79ab
commit f2def1b962

View file

@ -348,8 +348,7 @@ export class CreditNoteController extends Controller {
).length;
const price =
c.productService.pricePerUnit *
(1 + (c.productService.product.serviceChargeCalcVat ? VAT_DEFAULT : 0)) -
c.productService.pricePerUnit * (1 + (c.productService.vat > 0 ? VAT_DEFAULT : 0)) -
c.productService.discount;
if (serviceChargeStepCount && successCount) {
@ -542,8 +541,7 @@ export class CreditNoteController extends Controller {
).length;
const price =
c.productService.pricePerUnit *
(1 + (c.productService.product.serviceChargeCalcVat ? VAT_DEFAULT : 0)) -
c.productService.pricePerUnit * (1 + (c.productService.vat > 0 ? VAT_DEFAULT : 0)) -
c.productService.discount;
if (serviceChargeStepCount && successCount) {