From a1a30327757402ea72d22911abdb1aa06b6821b7 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Thu, 31 Oct 2024 10:19:43 +0700 Subject: [PATCH] refactor: add name field for custom insallment type --- src/stores/quotations/types.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/stores/quotations/types.ts b/src/stores/quotations/types.ts index cf843a13..0c99e36c 100644 --- a/src/stores/quotations/types.ts +++ b/src/stores/quotations/types.ts @@ -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'