fix: product vat calculation logic in PriceDataComponent
This commit is contained in:
parent
6156ebdba8
commit
ec7d76b6fa
1 changed files with 15 additions and 6 deletions
|
|
@ -304,6 +304,11 @@ withDefaults(
|
||||||
calculatePrice({
|
calculatePrice({
|
||||||
output: 'vat',
|
output: 'vat',
|
||||||
calcVat: calcVat,
|
calcVat: calcVat,
|
||||||
|
price: Number(
|
||||||
|
formatNumberDecimal(
|
||||||
|
calculatePrice({
|
||||||
|
output: 'beforeVat',
|
||||||
|
vatIncluded: vatIncluded,
|
||||||
price:
|
price:
|
||||||
(props.rowIndex === 0
|
(props.rowIndex === 0
|
||||||
? price
|
? price
|
||||||
|
|
@ -312,6 +317,10 @@ withDefaults(
|
||||||
: serviceCharge) || 0,
|
: serviceCharge) || 0,
|
||||||
}),
|
}),
|
||||||
2,
|
2,
|
||||||
|
).replaceAll(',', ''),
|
||||||
|
),
|
||||||
|
}),
|
||||||
|
2,
|
||||||
)
|
)
|
||||||
}}
|
}}
|
||||||
</q-td>
|
</q-td>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue