fix: wrong calc vat condition
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s
This commit is contained in:
parent
1486ce79ab
commit
f2def1b962
1 changed files with 2 additions and 4 deletions
|
|
@ -348,8 +348,7 @@ export class CreditNoteController extends Controller {
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
const price =
|
const price =
|
||||||
c.productService.pricePerUnit *
|
c.productService.pricePerUnit * (1 + (c.productService.vat > 0 ? VAT_DEFAULT : 0)) -
|
||||||
(1 + (c.productService.product.serviceChargeCalcVat ? VAT_DEFAULT : 0)) -
|
|
||||||
c.productService.discount;
|
c.productService.discount;
|
||||||
|
|
||||||
if (serviceChargeStepCount && successCount) {
|
if (serviceChargeStepCount && successCount) {
|
||||||
|
|
@ -542,8 +541,7 @@ export class CreditNoteController extends Controller {
|
||||||
).length;
|
).length;
|
||||||
|
|
||||||
const price =
|
const price =
|
||||||
c.productService.pricePerUnit *
|
c.productService.pricePerUnit * (1 + (c.productService.vat > 0 ? VAT_DEFAULT : 0)) -
|
||||||
(1 + (c.productService.product.serviceChargeCalcVat ? VAT_DEFAULT : 0)) -
|
|
||||||
c.productService.discount;
|
c.productService.discount;
|
||||||
|
|
||||||
if (serviceChargeStepCount && successCount) {
|
if (serviceChargeStepCount && successCount) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue