fix: type quotation
This commit is contained in:
parent
df6ff31450
commit
15bbbdf8a0
1 changed files with 19 additions and 18 deletions
|
|
@ -224,10 +224,10 @@ export type QuotationFull = {
|
|||
amount: number;
|
||||
productId: string;
|
||||
product: ProductRelation;
|
||||
workId: string;
|
||||
work: WorkRelation;
|
||||
serviceId: string;
|
||||
service: ServiceRelation;
|
||||
workId: string | null;
|
||||
work: WorkRelation | null;
|
||||
serviceId: string | null;
|
||||
service: ServiceRelation | null;
|
||||
}[];
|
||||
|
||||
id: string;
|
||||
|
|
@ -237,8 +237,9 @@ export type QuotationFull = {
|
|||
totalPrice: number;
|
||||
urgent: boolean;
|
||||
workerCount: number;
|
||||
payBillDate: string | Date;
|
||||
paySplitCount: number;
|
||||
payBillDate: string | Date | null;
|
||||
paySplitCount: number | null;
|
||||
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||
date: string | Date;
|
||||
dueDate: string | Date;
|
||||
|
|
@ -261,21 +262,21 @@ export type QuotationFull = {
|
|||
|
||||
export type QuotationPayload = {
|
||||
productServiceList: {
|
||||
vat: number;
|
||||
pricePerUnit: number;
|
||||
discount: number;
|
||||
vat?: number;
|
||||
pricePerUnit?: number;
|
||||
discount?: number;
|
||||
amount: number;
|
||||
productId: string;
|
||||
workId: string;
|
||||
serviceId: string;
|
||||
product: ProductRelation;
|
||||
work?: WorkRelation | null;
|
||||
service?: ServiceRelation | null;
|
||||
}[];
|
||||
urgent: boolean;
|
||||
customerBranchId: string;
|
||||
urgent: boolean;
|
||||
worker: EmployeeWorker[];
|
||||
workerCount: 0;
|
||||
payBillDate: Date;
|
||||
paySplit: Date[];
|
||||
paySplitCount: number; // int
|
||||
payBillDate?: Date | null;
|
||||
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||
paySplitCount?: number | null; // int
|
||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||
dueDate: Date;
|
||||
documentReceivePoint: string;
|
||||
|
|
@ -288,8 +289,8 @@ export type QuotationPayload = {
|
|||
|
||||
export type EmployeeWorker = {
|
||||
id?: string;
|
||||
alienReferencNumber: string;
|
||||
documentExpireDate: Date | undefined;
|
||||
alienReferencNumber?: string;
|
||||
documentExpireDate?: Date | undefined;
|
||||
lastNameEN: string;
|
||||
lastName: string;
|
||||
middleNameEN: string;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue