feat: adjust payment page (#31)

* feat: add installment no label

* feat: update types

* refactor: add i18n

* refactor: view receipt

* refactor: add type

* refactor: add dateFormatTh

* fixup! refactor: add i18n

* fixup! refactor: add dateFormatTh

* refactor: use dateFormatJS in monthDisplay

* refactor: handle year th-TH

* ลบ log

* refactor: handle color view mod
This commit is contained in:
Net 2024-10-31 10:00:35 +07:00 • committed by GitHub
parent e273ad1015
commit 0986200910
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 201 additions and 92 deletions

View file

@ -42,7 +42,6 @@ const DEFAULT_DATA: QuotationPayload = {
const DEFAULT_DATA_INVOICE: InvoicePayload = {
quotationId: '',
amount: 0,
productServiceListId: [],
installmentNo: [],
};
@ -136,7 +135,7 @@ export const useQuotationForm = defineStore('form-quotation', () => {
payBillDate: data.payBillDate ? new Date(data.payBillDate) : undefined,
paySplit: data.paySplit.map((p, index) => ({
no: index + 1,
invoice: p.invoice,
invoiceId: p.invoiceId,
amount: p.amount,
})),
worker: data.worker.map((v) =>