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 }[];