refactor: before vat minus discount
This commit is contained in:
parent
5de762bb72
commit
e3c781f857
1 changed files with 4 additions and 1 deletions
|
|
@ -242,7 +242,10 @@ function calcPrice(
|
|||
<q-td class="text-right" v-if="!creditNote">
|
||||
{{
|
||||
formatNumberDecimal(
|
||||
calcPricePerUnit(props.row.product) * props.row.list.length,
|
||||
calcPricePerUnit(props.row.product) * props.row.list.length -
|
||||
(taskProduct.find(
|
||||
(v) => v.productId === props.row.product.id,
|
||||
)?.discount || 0),
|
||||
2,
|
||||
)
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue