fix: price
This commit is contained in:
parent
1af782f624
commit
74d2d49135
1 changed files with 2 additions and 2 deletions
|
|
@ -484,7 +484,7 @@ export class QuotationController extends Controller {
|
|||
);
|
||||
|
||||
const price = finalPriceWithVat;
|
||||
const pricePerUnit = p.vatIncluded ? price / (1 + VAT_DEFAULT) : price;
|
||||
const pricePerUnit = price / (1 + VAT_DEFAULT);
|
||||
const vat = p.calcVat ? (pricePerUnit * v.amount - (v.discount || 0)) * VAT_DEFAULT : 0;
|
||||
|
||||
return {
|
||||
|
|
@ -751,7 +751,7 @@ export class QuotationController extends Controller {
|
|||
);
|
||||
|
||||
const price = finalPriceWithVat;
|
||||
const pricePerUnit = p.vatIncluded ? price / (1 + VAT_DEFAULT) : price;
|
||||
const pricePerUnit = price / (1 + VAT_DEFAULT);
|
||||
const vat = p.calcVat ? (pricePerUnit * v.amount - (v.discount || 0)) * VAT_DEFAULT : 0;
|
||||
|
||||
return {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue