refactor: type quotation
This commit is contained in:
parent
15bbbdf8a0
commit
017f757de2
1 changed files with 2 additions and 21 deletions
|
|
@ -154,26 +154,6 @@ type ServiceRelation = {
|
|||
export type Quotation = {
|
||||
_count: { worker: number };
|
||||
|
||||
customerBranch: CustomerBranchRelation;
|
||||
|
||||
worker: {
|
||||
id: string;
|
||||
quotationId: string;
|
||||
employeeId: string;
|
||||
code: string;
|
||||
no: number;
|
||||
}[];
|
||||
|
||||
productServiceList: {
|
||||
vat: number;
|
||||
pricePerUnit: number;
|
||||
discount: number;
|
||||
amount: number;
|
||||
productId: string;
|
||||
workId: string;
|
||||
serviceId: string;
|
||||
}[];
|
||||
|
||||
id: string;
|
||||
finalPrice: number;
|
||||
vat: number;
|
||||
|
|
@ -200,6 +180,7 @@ export type Quotation = {
|
|||
status: Status;
|
||||
|
||||
customerBranchId: string;
|
||||
customerBranch: CustomerBranchRelation;
|
||||
|
||||
createdByUserId: string;
|
||||
createdAt: string | Date;
|
||||
|
|
@ -273,7 +254,7 @@ export type QuotationPayload = {
|
|||
customerBranchId: string;
|
||||
urgent: boolean;
|
||||
worker: EmployeeWorker[];
|
||||
workerCount: 0;
|
||||
workerCount: number;
|
||||
payBillDate?: Date | null;
|
||||
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||
paySplitCount?: number | null; // int
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue