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 = {
|
export type Quotation = {
|
||||||
_count: { worker: number };
|
_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;
|
id: string;
|
||||||
finalPrice: number;
|
finalPrice: number;
|
||||||
vat: number;
|
vat: number;
|
||||||
|
|
@ -200,6 +180,7 @@ export type Quotation = {
|
||||||
status: Status;
|
status: Status;
|
||||||
|
|
||||||
customerBranchId: string;
|
customerBranchId: string;
|
||||||
|
customerBranch: CustomerBranchRelation;
|
||||||
|
|
||||||
createdByUserId: string;
|
createdByUserId: string;
|
||||||
createdAt: string | Date;
|
createdAt: string | Date;
|
||||||
|
|
@ -273,7 +254,7 @@ export type QuotationPayload = {
|
||||||
customerBranchId: string;
|
customerBranchId: string;
|
||||||
urgent: boolean;
|
urgent: boolean;
|
||||||
worker: EmployeeWorker[];
|
worker: EmployeeWorker[];
|
||||||
workerCount: 0;
|
workerCount: number;
|
||||||
payBillDate?: Date | null;
|
payBillDate?: Date | null;
|
||||||
paySplit: { no: number; date: string | Date; amount: number }[];
|
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||||
paySplitCount?: number | null; // int
|
paySplitCount?: number | null; // int
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue