From 235d2020d75e41798ed5c3358f4bb1e4775ca25d Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 1 Nov 2024 11:14:12 +0700 Subject: [PATCH] fix: null not get accepted as valid --- src/controllers/05-quotation-controller.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 869f5ef..c2547db 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -40,7 +40,7 @@ type QuotationCreate = { payCondition: PayCondition; paySplitCount?: number; - paySplit?: { name?: string; amount: number }[]; + paySplit?: { name?: string | null; amount: number }[]; payBillDate?: Date; @@ -98,7 +98,7 @@ type QuotationUpdate = { payCondition?: PayCondition; paySplitCount?: number; - paySplit?: { name?: string; amount: number }[]; + paySplit?: { name?: string | null; amount: number }[]; payBillDate?: Date;