refactor: before vat minus discount

This commit is contained in:
Thanaphon Frappet 2025-01-24 21:55:32 +07:00
parent 5de762bb72
commit e3c781f857

View file

@ -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,
)
}}