From 76e7617d9573be695844e0706eeddda4c569c738 Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 4 Oct 2024 11:54:01 +0700 Subject: [PATCH] chore: update type --- src/stores/quotations/types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stores/quotations/types.ts b/src/stores/quotations/types.ts index 0fb744d0..f5b3db82 100644 --- a/src/stores/quotations/types.ts +++ b/src/stores/quotations/types.ts @@ -160,7 +160,6 @@ export type Quotation = { totalDiscount: number; totalPrice: number; urgent: boolean; - workerCount: number; payBillDate: string | Date; paySplitCount: number; paySplit: { @@ -189,6 +188,8 @@ export type Quotation = { }; export type QuotationFull = { + _count: { worker: number }; + worker: { id: string; quotationId: string; @@ -217,7 +218,6 @@ export type QuotationFull = { totalDiscount: number; totalPrice: number; urgent: boolean; - workerCount: number; payBillDate: string | Date | null; paySplitCount: number | null; paySplit: { no: number; date: string | Date; amount: number }[];