From b74a8d1a09d3be6cecccec3545c22115553bda87 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 28 Oct 2024 08:52:25 +0700 Subject: [PATCH] refactor: add type QuotationStatus --- src/stores/quotations/types.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/stores/quotations/types.ts b/src/stores/quotations/types.ts index e7497ff9..d800a5cb 100644 --- a/src/stores/quotations/types.ts +++ b/src/stores/quotations/types.ts @@ -2,6 +2,16 @@ import { CustomerType } from '../customer/types'; import { District, Province, SubDistrict } from '../address'; import { CreatedBy, Status, UpdatedBy } from '../types'; +export type QuotationStatus = + | 'Issued' + | 'Accepted' + | 'Invoice' + | 'PaymentPending' + | 'PaymentInProcess' + | 'PaymentSuccess' + | 'ProcessComplete' + | 'Canceled'; + export type CustomerBranchRelation = { district: District; province: Province; @@ -327,6 +337,7 @@ export type QuotationPayload = { workName: string; status?: Status; remark?: string; + quotationStatus?: QuotationStatus; }; export type EmployeeWorker = {