fix: add missing field

This commit is contained in:
Methapon2001 2024-04-24 10:02:37 +07:00
parent 1e8ef2114c
commit a5d59c6e8b
2 changed files with 8 additions and 8 deletions

View file

@ -36,7 +36,7 @@ export type CustomerBranchCreate = {
legalPersonNo: string; legalPersonNo: string;
taxNo: string; taxNo: string | null;
name: string; name: string;
nameEN: string; nameEN: string;
addressEN: string; addressEN: string;
@ -44,8 +44,6 @@ export type CustomerBranchCreate = {
zipCode: string; zipCode: string;
email: string; email: string;
telephoneNo: string; telephoneNo: string;
longitude: string;
latitude: string;
registerName: string; registerName: string;
registerDate: Date; registerDate: Date;
@ -53,7 +51,9 @@ export type CustomerBranchCreate = {
employmentOffice: string; employmentOffice: string;
bussinessType: string; bussinessType: string;
bussinessTypeEN: string;
jobPosition: string; jobPosition: string;
jobPositionEN: string;
jobDescription: string; jobDescription: string;
saleEmployee: string; saleEmployee: string;
payDate: string; payDate: string;
@ -71,7 +71,7 @@ export type CustomerBranchUpdate = {
legalPersonNo?: string; legalPersonNo?: string;
taxNo?: string; taxNo?: string | null;
name?: string; name?: string;
nameEN?: string; nameEN?: string;
addressEN?: string; addressEN?: string;
@ -79,8 +79,6 @@ export type CustomerBranchUpdate = {
zipCode?: string; zipCode?: string;
email?: string; email?: string;
telephoneNo?: string; telephoneNo?: string;
longitude?: string;
latitude?: string;
registerName?: string; registerName?: string;
registerDate?: Date; registerDate?: Date;
@ -88,7 +86,9 @@ export type CustomerBranchUpdate = {
employmentOffice?: string; employmentOffice?: string;
bussinessType?: string; bussinessType?: string;
bussinessTypeEN?: string;
jobPosition?: string; jobPosition?: string;
jobPositionEN?: string;
jobDescription?: string; jobDescription?: string;
saleEmployee?: string; saleEmployee?: string;
payDate?: string; payDate?: string;

View file

@ -31,7 +31,7 @@ export type CustomerCreate = {
customerType: CustomerType; customerType: CustomerType;
customerName: string; customerName: string;
customerNameEN: string; customerNameEN: string;
taxNo?: string; taxNo?: string | null;
customerBranch?: Omit<CustomerBranchCreate, "customerId">[]; customerBranch?: Omit<CustomerBranchCreate, "customerId">[];
}; };
@ -40,7 +40,7 @@ export type CustomerUpdate = {
customerType?: CustomerType; customerType?: CustomerType;
customerName?: string; customerName?: string;
customerNameEN?: string; customerNameEN?: string;
taxNo?: string; taxNo?: string | null;
customerBranch?: (Omit<CustomerBranchUpdate, "customerId"> & { id: string })[]; customerBranch?: (Omit<CustomerBranchUpdate, "customerId"> & { id: string })[];
}; };