refactor: handle show discount
This commit is contained in:
parent
2099031fa8
commit
ded56d103b
3 changed files with 9 additions and 3 deletions
|
|
@ -410,7 +410,9 @@ function print() {
|
|||
{{ formatNumberDecimal(v.pricePerUnit, 2) }}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{{ formatNumberDecimal(v.discount, 2) }} ฿
|
||||
<template v-if="v.discount !== 0">
|
||||
{{ formatNumberDecimal(v.discount, 2) }} ฿
|
||||
</template>
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{{ Math.round((v.vat > 0 ? config?.vat || 0.07 : 0) * 100) }}%
|
||||
|
|
|
|||
|
|
@ -339,7 +339,9 @@ function closeAble() {
|
|||
{{ formatNumberDecimal(v.priceUnit, 2) }}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{{ formatNumberDecimal(v.discount, 2) }} ฿
|
||||
<template v-if="v.discount !== 0">
|
||||
{{ formatNumberDecimal(v.discount, 2) }} ฿
|
||||
</template>
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{{ formatNumberDecimal(v.vat, 2) }}
|
||||
|
|
|
|||
|
|
@ -369,7 +369,9 @@ function print() {
|
|||
{{ formatNumberDecimal(v.priceUnit, 2) }}
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{{ formatNumberDecimal(v.discount, 2) }} ฿
|
||||
<template v-if="v.discount !== 0">
|
||||
{{ formatNumberDecimal(v.discount, 2) }} ฿
|
||||
</template>
|
||||
</td>
|
||||
<td style="text-align: right">
|
||||
{{ formatNumberDecimal(v.vat, 2) }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue