refactor: type quotation

This commit is contained in:
Methapon Metanipat 2024-10-03 14:33:10 +07:00
parent 15bbbdf8a0
commit 017f757de2

View file

@ -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