refactor: handle show discount

This commit is contained in:
Thanaphon Saengchan 2025-09-17 15:39:02 +07:00 • committed by Methapon2001
parent 2099031fa8
commit ded56d103b
3 changed files with 9 additions and 3 deletions

View file

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