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,12 +304,21 @@ withDefaults(
|
||||||
calculatePrice({
|
calculatePrice({
|
||||||
output: 'vat',
|
output: 'vat',
|
||||||
calcVat: calcVat,
|
calcVat: calcVat,
|
||||||
price:
|
price: Number(
|
||||||
(props.rowIndex === 0
|
formatNumberDecimal(
|
||||||
? price
|
calculatePrice({
|
||||||
: props.rowIndex === 1
|
output: 'beforeVat',
|
||||||
? agentPrice
|
vatIncluded: vatIncluded,
|
||||||
: serviceCharge) || 0,
|
price:
|
||||||
|
(props.rowIndex === 0
|
||||||
|
? price
|
||||||
|
: props.rowIndex === 1
|
||||||
|
? agentPrice
|
||||||
|
: serviceCharge) || 0,
|
||||||
|
}),
|
||||||
|
2,
|
||||||
|
).replaceAll(',', ''),
|
||||||
|
),
|
||||||
}),
|
}),
|
||||||
2,
|
2,
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue