diff --git a/src/stores/employee/types.ts b/src/stores/employee/types.ts index 83932ee7..ac0abab5 100644 --- a/src/stores/employee/types.ts +++ b/src/stores/employee/types.ts @@ -17,6 +17,9 @@ export type Employee = { firstNameEN: string; lastName: string; lastNameEN: string; + middleName?: string; + middleNameEN?: string; + dateOfBirth: Date; gender: string; nationality: string; diff --git a/src/stores/quotations/types.ts b/src/stores/quotations/types.ts index a9be12e3..32a49bcf 100644 --- a/src/stores/quotations/types.ts +++ b/src/stores/quotations/types.ts @@ -2,6 +2,7 @@ import { CustomerType } from '../customer/types'; import { District, Province, SubDistrict } from '../address'; import { CreatedBy, Status, UpdatedBy } from '../types'; import { Invoice } from '../payment/types'; +import { Employee } from '../employee/types'; export type PayCondition = | 'Full' @@ -266,7 +267,7 @@ export type QuotationFull = { id: string; quotationId: string; employeeId: string; - employee: EmployeeRelation; + employee: Employee; code: string; no: number; }[]; @@ -355,7 +356,7 @@ export type QuotationPayload = { customerBranchId: string; registeredBranchId: string; urgent: boolean; - worker: EmployeeWorker[]; + worker: Employee[]; workerMax: number | null; _count: { worker: number }; discount?: number; @@ -384,8 +385,8 @@ export type EmployeeWorker = { documentExpireDate?: Date | undefined; lastNameEN: string; lastName: string; - middleNameEN: string; - middleName: string; + middleNameEN?: string; + middleName?: string; firstNameEN: string; firstName: string; namePrefix: string; @@ -428,7 +429,7 @@ export type Details = { contactTel: string; workName: string; dueDate: Date; - worker: EmployeeWorker[]; + worker: Employee[]; }; export type PaymentPayload = {