refactor: add name field for custom insallment type

This commit is contained in:
Methapon Metanipat 2024-10-31 10:19:43 +07:00
parent 2558122a6b
commit a1a3032775

View file

@ -207,6 +207,7 @@ export type Quotation = {
no: number;
invoiceId: string;
amount: number;
name?: string;
}[];
payCondition:
| 'Full'
@ -290,6 +291,7 @@ export type QuotationFull = {
paySplit: {
no: number;
amount: number;
name?: string;
invoice: Invoice;
invoiceId: string;
}[];
@ -352,7 +354,7 @@ export type QuotationPayload = {
_count: { worker: number };
discount?: number;
payBillDate?: Date | null;
paySplit: { no: number; amount: number; invoice?: boolean }[];
paySplit: { no: number; amount: number; name?: string; invoice?: boolean }[];
paySplitCount?: number | null; // int
payCondition:
| 'Full'