refactor: type employee
This commit is contained in:
parent
d0eaafb9d8
commit
e76077ba08
2 changed files with 9 additions and 5 deletions
|
|
@ -17,6 +17,9 @@ export type Employee = {
|
|||
firstNameEN: string;
|
||||
lastName: string;
|
||||
lastNameEN: string;
|
||||
middleName?: string;
|
||||
middleNameEN?: string;
|
||||
|
||||
dateOfBirth: Date;
|
||||
gender: string;
|
||||
nationality: string;
|
||||
|
|
|
|||
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue