fix: installment comma input

This commit is contained in:
puriphatt 2024-10-16 11:13:34 +07:00
parent 1e503a1e43
commit b12b410b2b
3 changed files with 7 additions and 10 deletions

View file

@ -615,7 +615,7 @@ export default {
customerName: 'ชื่อลูกค้า',
actor: 'ผู้ที่ทำรายงาน',
totalPrice: 'ยอดรวมสุทธิ',
totalPriceBaht: 'ยอดรวมสุทธิ(บาท)',
totalPriceBaht: 'ยอดรวมสุทธิ (บาท)',
receipt: 'ใบเสร็จ/กำกับภาษี',
branch: 'สาขาที่ออกใบเสนอราคา',
customer: 'ลูกค้า',

View file

@ -600,8 +600,8 @@ async function searchEmployee(text: string) {
<template>
<div class="fullscreen column surface-0">
<div class="color-bar">
<div class="blue-segment"></div>
<div class="orange-segment"></div>
<div class="yellow-segment"></div>
<div class="gray-segment"></div>
</div>
@ -1442,12 +1442,12 @@ async function searchEmployee(text: string) {
overflow: hidden;
}
.blue-segment {
.orange-segment {
background-color: var(--yellow-7);
flex-grow: 4;
}
.orange-segment {
.yellow-segment {
background-color: hsla(var(--yellow-7-hsl) / 0.2);
flex-grow: 0.5;
}
@ -1457,8 +1457,8 @@ async function searchEmployee(text: string) {
flex-grow: 1;
}
.blue-segment,
.orange-segment,
.yellow-segment,
.gray-segment {
transform: skewX(-60deg);
}

View file

@ -324,10 +324,6 @@ watch(
class="col-12 text-caption"
style="padding-left: 20px"
>
{{ amount4Show }}
<br />
{{ paySplit.map((i) => i.amount) }}
<template v-for="(period, i) in paySplit" :key="period.no">
<div
class="row app-text-muted items-center"
@ -351,6 +347,7 @@ watch(
);
period.amount = precisionRound(x);
commaInput(period.amount.toString());
calculateInstallments({
customIndex: i,
@ -559,7 +556,7 @@ watch(
</div>
</div>
<div class="q-pa-sm row surface-2 items-center text-weight-bold">
{{ $t('general.totalAmount') }}
{{ $t('quotation.totalPriceBaht') }}
<span class="q-ml-auto" style="color: var(--brand-1)">
{{ formatNumberDecimal(Math.max(summaryPrice.finalPrice, 0), 2) || 0 }}