refactor: edit type
This commit is contained in:
parent
f3aca29cbb
commit
758a4f01f3
1 changed files with 90 additions and 53 deletions
|
|
@ -26,34 +26,37 @@ export type Customer = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerBranch = {
|
export type CustomerBranch = {
|
||||||
id: string;
|
|
||||||
branchNo: number;
|
|
||||||
legalPersonNo: string;
|
|
||||||
name: string;
|
|
||||||
nameEN: string;
|
|
||||||
code: string;
|
|
||||||
customerId: string;
|
customerId: string;
|
||||||
taxNo: string;
|
|
||||||
registerName: string;
|
|
||||||
registerDate: string;
|
|
||||||
authorizedCapital: string;
|
|
||||||
address: string;
|
|
||||||
addressEN: string;
|
|
||||||
provinceId: string | null;
|
|
||||||
districtId: string | null;
|
|
||||||
subDistrictId: string | null;
|
|
||||||
zipCode: string;
|
|
||||||
email: string;
|
|
||||||
telephoneNo: string;
|
|
||||||
employmentOffice: string;
|
|
||||||
bussinessType: string;
|
|
||||||
bussinessTypeEN: string;
|
|
||||||
jobPosition: string;
|
|
||||||
jobPositionEN: string;
|
|
||||||
jobDescription: string;
|
|
||||||
saleEmployee: string;
|
|
||||||
payDate: Date;
|
|
||||||
wageRate: number;
|
wageRate: number;
|
||||||
|
payDate: string;
|
||||||
|
saleEmployee: string;
|
||||||
|
jobDescription: string;
|
||||||
|
jobPositionEN: string;
|
||||||
|
jobPosition: string;
|
||||||
|
businessTypeEN: string;
|
||||||
|
businessType: string;
|
||||||
|
employmentOffice: string;
|
||||||
|
workplaceEN: string;
|
||||||
|
workplace: string;
|
||||||
|
authorizedCapital: string;
|
||||||
|
registerDate: string;
|
||||||
|
registerNameEN: string;
|
||||||
|
registerName: string;
|
||||||
|
legalPersonNo: string;
|
||||||
|
citizenId: string;
|
||||||
|
updatedByUserId: string;
|
||||||
|
createdByUserId: string;
|
||||||
|
statusOrder: number;
|
||||||
|
telephoneNo: string;
|
||||||
|
email: string;
|
||||||
|
subDistrictId: string;
|
||||||
|
districtId: string;
|
||||||
|
provinceId: string;
|
||||||
|
addressEN: string;
|
||||||
|
address: string;
|
||||||
|
code: string;
|
||||||
|
id: string;
|
||||||
|
|
||||||
status: Status;
|
status: Status;
|
||||||
createdBy: string | null;
|
createdBy: string | null;
|
||||||
createdAt: string;
|
createdAt: string;
|
||||||
|
|
@ -68,36 +71,70 @@ export type CustomerBranch = {
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerBranchCreate = {
|
export type CustomerBranchCreate = {
|
||||||
id?: string;
|
|
||||||
code?: string;
|
code?: string;
|
||||||
branchNo?: number;
|
customerCode?: string;
|
||||||
address: string;
|
|
||||||
addressEN: string;
|
provinceId: string;
|
||||||
provinceId?: string | null;
|
districtId: string;
|
||||||
districtId?: string | null;
|
subDistrictId: string;
|
||||||
subDistrictId?: string | null;
|
|
||||||
zipCode: string;
|
|
||||||
email: string;
|
|
||||||
telephoneNo: string;
|
|
||||||
status?: Status;
|
|
||||||
name: string;
|
|
||||||
taxNo?: string | null;
|
|
||||||
nameEN: string;
|
|
||||||
legalPersonNo: string;
|
|
||||||
registerName: string;
|
|
||||||
registerDate: Date | null;
|
|
||||||
authorizedCapital: string;
|
|
||||||
employmentOffice: string;
|
|
||||||
bussinessType: string;
|
|
||||||
bussinessTypeEN: string;
|
|
||||||
jobPosition: string;
|
|
||||||
jobPositionEN: string;
|
|
||||||
jobDescription: string;
|
|
||||||
saleEmployee: string;
|
|
||||||
payDate: Date;
|
|
||||||
wageRate: number;
|
wageRate: number;
|
||||||
file?: File[];
|
payDate: Date | null;
|
||||||
|
saleEmployee: string;
|
||||||
|
jobDescription: string;
|
||||||
|
jobPositionEN: string;
|
||||||
|
jobPosition: string;
|
||||||
|
businessTypeEN: string;
|
||||||
|
businessType: string;
|
||||||
|
employmentOffice: string;
|
||||||
|
telephoneNo: string;
|
||||||
|
email: string;
|
||||||
|
addressEN: string;
|
||||||
|
address: string;
|
||||||
|
workplaceEN: string;
|
||||||
|
workplace: string;
|
||||||
|
status: Status | undefined;
|
||||||
|
customerId: string;
|
||||||
|
citizenId?: string;
|
||||||
|
authorizedCapital?: string;
|
||||||
|
registerDate?: Date | null;
|
||||||
|
registerNameEN?: string;
|
||||||
|
registerName?: string;
|
||||||
|
legalPersonNo?: string;
|
||||||
|
registerCompanyName: string;
|
||||||
|
|
||||||
statusSave?: boolean;
|
statusSave?: boolean;
|
||||||
|
file?: File[];
|
||||||
|
|
||||||
|
// id?: string;
|
||||||
|
// code?: string;
|
||||||
|
// provinceId?: string | null;
|
||||||
|
// branchNo?: number;
|
||||||
|
// address: string;
|
||||||
|
// addressEN: string;
|
||||||
|
// districtId?: string | null;
|
||||||
|
// subDistrictId?: string | null;
|
||||||
|
// zipCode: string;
|
||||||
|
// email: string;
|
||||||
|
// telephoneNo: string;
|
||||||
|
// status?: Status;
|
||||||
|
// name: string;
|
||||||
|
// taxNo?: string | null;
|
||||||
|
// nameEN: string;
|
||||||
|
// legalPersonNo: string;
|
||||||
|
// registerName: string;
|
||||||
|
// registerDate: Date | null;
|
||||||
|
// authorizedCapital: string;
|
||||||
|
// employmentOffice: string;
|
||||||
|
// bussinessType: string;
|
||||||
|
// bussinessTypeEN: string;
|
||||||
|
// jobPosition: string;
|
||||||
|
// jobPositionEN: string;
|
||||||
|
// jobDescription: string;
|
||||||
|
// saleEmployee: string;
|
||||||
|
// payDate: Date;
|
||||||
|
// wageRate: number;
|
||||||
|
// file?: File[];
|
||||||
|
// statusSave?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CustomerCreate = {
|
export type CustomerCreate = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue