refactor: handle price 0 baht
This commit is contained in:
parent
c1c814ade2
commit
c7438edd79
3 changed files with 3 additions and 3 deletions
|
|
@ -71,7 +71,7 @@ watch(
|
|||
(newValue) => {
|
||||
if (newValue !== undefined && typeof newValue === 'string') {
|
||||
const numericValue = newValue.replace(/,/g, '');
|
||||
wageRateText.value = ThaiBahtText(numericValue);
|
||||
wageRateText.value = ThaiBahtText(numericValue) || 'ศูนย์บาทถ้วน';
|
||||
wageRate.value = parseFloat(numericValue);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
|
|
@ -448,7 +448,7 @@ function print() {
|
|||
class="column set-width bg-color full-height"
|
||||
style="padding: 12px"
|
||||
>
|
||||
({{ ThaiBahtText(summaryPrice.finalPrice) }})
|
||||
({{ ThaiBahtText(summaryPrice.finalPrice) || 'ศูนย์บาทถ้วน' }})
|
||||
</div>
|
||||
<div
|
||||
class="row text-right border-5 items-center"
|
||||
|
|
|
|||
|
|
@ -373,7 +373,7 @@ function print() {
|
|||
class="column set-width bg-color full-height"
|
||||
style="padding: 12px"
|
||||
>
|
||||
({{ ThaiBahtText(summaryPrice.finalPrice) }})
|
||||
({{ ThaiBahtText(summaryPrice.finalPrice) || 'ศูนย์บาทถ้วน' }})
|
||||
</div>
|
||||
<div
|
||||
class="row text-right border-5 items-center"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue