From 73a45fd5b62949736f4df2eec513b01e4abf1cd7 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Thu, 10 Oct 2024 13:34:38 +0700 Subject: [PATCH] refactor: edit type --- src/stores/quotations/types.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/stores/quotations/types.ts b/src/stores/quotations/types.ts index 788956c6..b182dc18 100644 --- a/src/stores/quotations/types.ts +++ b/src/stores/quotations/types.ts @@ -118,6 +118,7 @@ type ProductRelation = { createdByUserId: string; updatedAt: string; updatedByUserId: string; + productGroup?: ProductGroup; }; type WorkRelation = { @@ -279,7 +280,7 @@ export type QuotationPayload = { contactName: string; workName: string; actorName: string; - status: Status; + status?: Status; }; export type EmployeeWorker = { @@ -297,3 +298,18 @@ export type EmployeeWorker = { gender: string; dateOfBirth: Date; }; + +export type ProductGroup = { + id: string; + name: string; + code: string; + status: Status; + statusOrder: number; + createdAt: string | Date; + createdByUserId: string; + updatedAt: string | Date; + updatedByUserId: string; + detail: string; + remark: string; + registeredBranchId: string; +};