From a5d59c6e8b77a9e6f1d71e660b4c32d74097d289 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Wed, 24 Apr 2024 10:02:37 +0700 Subject: [PATCH] fix: add missing field --- src/controllers/customer-branch-controller.ts | 12 ++++++------ src/controllers/customer-controller.ts | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/controllers/customer-branch-controller.ts b/src/controllers/customer-branch-controller.ts index 9cac3da..ff24201 100644 --- a/src/controllers/customer-branch-controller.ts +++ b/src/controllers/customer-branch-controller.ts @@ -36,7 +36,7 @@ export type CustomerBranchCreate = { legalPersonNo: string; - taxNo: string; + taxNo: string | null; name: string; nameEN: string; addressEN: string; @@ -44,8 +44,6 @@ export type CustomerBranchCreate = { zipCode: string; email: string; telephoneNo: string; - longitude: string; - latitude: string; registerName: string; registerDate: Date; @@ -53,7 +51,9 @@ export type CustomerBranchCreate = { employmentOffice: string; bussinessType: string; + bussinessTypeEN: string; jobPosition: string; + jobPositionEN: string; jobDescription: string; saleEmployee: string; payDate: string; @@ -71,7 +71,7 @@ export type CustomerBranchUpdate = { legalPersonNo?: string; - taxNo?: string; + taxNo?: string | null; name?: string; nameEN?: string; addressEN?: string; @@ -79,8 +79,6 @@ export type CustomerBranchUpdate = { zipCode?: string; email?: string; telephoneNo?: string; - longitude?: string; - latitude?: string; registerName?: string; registerDate?: Date; @@ -88,7 +86,9 @@ export type CustomerBranchUpdate = { employmentOffice?: string; bussinessType?: string; + bussinessTypeEN?: string; jobPosition?: string; + jobPositionEN?: string; jobDescription?: string; saleEmployee?: string; payDate?: string; diff --git a/src/controllers/customer-controller.ts b/src/controllers/customer-controller.ts index 276e863..2721e52 100644 --- a/src/controllers/customer-controller.ts +++ b/src/controllers/customer-controller.ts @@ -31,7 +31,7 @@ export type CustomerCreate = { customerType: CustomerType; customerName: string; customerNameEN: string; - taxNo?: string; + taxNo?: string | null; customerBranch?: Omit[]; }; @@ -40,7 +40,7 @@ export type CustomerUpdate = { customerType?: CustomerType; customerName?: string; customerNameEN?: string; - taxNo?: string; + taxNo?: string | null; customerBranch?: (Omit & { id: string })[]; };