fix: wrong vat excluded
This commit is contained in:
parent
75796c36c8
commit
1d1f5ec90a
1 changed files with 2 additions and 2 deletions
|
|
@ -403,7 +403,7 @@ export class QuotationController extends Controller {
|
||||||
? precisionRound(
|
? precisionRound(
|
||||||
a.vatExcluded + (c.pricePerUnit * c.amount - (c.discount || 0)) * VAT_DEFAULT,
|
a.vatExcluded + (c.pricePerUnit * c.amount - (c.discount || 0)) * VAT_DEFAULT,
|
||||||
)
|
)
|
||||||
: 0;
|
: a.vatExcluded;
|
||||||
a.finalPrice = precisionRound(
|
a.finalPrice = precisionRound(
|
||||||
Math.max(a.totalPrice - a.totalDiscount + a.vat - (body.discount || 0), 0),
|
Math.max(a.totalPrice - a.totalDiscount + a.vat - (body.discount || 0), 0),
|
||||||
);
|
);
|
||||||
|
|
@ -655,7 +655,7 @@ export class QuotationController extends Controller {
|
||||||
? precisionRound(
|
? precisionRound(
|
||||||
a.vatExcluded + (c.pricePerUnit * c.amount - (c.discount || 0)) * VAT_DEFAULT,
|
a.vatExcluded + (c.pricePerUnit * c.amount - (c.discount || 0)) * VAT_DEFAULT,
|
||||||
)
|
)
|
||||||
: 0;
|
: a.vatExcluded;
|
||||||
a.finalPrice = precisionRound(
|
a.finalPrice = precisionRound(
|
||||||
Math.max(a.totalPrice - a.totalDiscount + a.vat - (body.discount || 0), 0),
|
Math.max(a.totalPrice - a.totalDiscount + a.vat - (body.discount || 0), 0),
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue