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:
parent
e273ad1015
commit
0986200910
9 changed files with 201 additions and 92 deletions
|
|
@ -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) =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue