fix: wrong calc vat
This commit is contained in:
parent
8117094aeb
commit
1d33a15b12
1 changed files with 2 additions and 2 deletions
|
|
@ -480,7 +480,7 @@ export class QuotationController extends Controller {
|
||||||
|
|
||||||
const originalPrice = body.agentPrice ? p.agentPrice : p.price;
|
const originalPrice = body.agentPrice ? p.agentPrice : p.price;
|
||||||
const finalPriceWithVat = precisionRound(
|
const finalPriceWithVat = precisionRound(
|
||||||
originalPrice + (p.vatIncluded ? 0 : originalPrice * 1.07),
|
originalPrice + (p.vatIncluded ? 0 : originalPrice * VAT_DEFAULT),
|
||||||
);
|
);
|
||||||
|
|
||||||
const price = finalPriceWithVat;
|
const price = finalPriceWithVat;
|
||||||
|
|
@ -747,7 +747,7 @@ export class QuotationController extends Controller {
|
||||||
|
|
||||||
const originalPrice = record.agentPrice ? p.agentPrice : p.price;
|
const originalPrice = record.agentPrice ? p.agentPrice : p.price;
|
||||||
const finalPriceWithVat = precisionRound(
|
const finalPriceWithVat = precisionRound(
|
||||||
originalPrice + (p.vatIncluded ? 0 : originalPrice * 1.07),
|
originalPrice + (p.vatIncluded ? 0 : originalPrice * VAT_DEFAULT),
|
||||||
);
|
);
|
||||||
|
|
||||||
const price = finalPriceWithVat;
|
const price = finalPriceWithVat;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue