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;
|
amount: number;
|
||||||
productId: string;
|
productId: string;
|
||||||
product: ProductRelation;
|
product: ProductRelation;
|
||||||
workId: string;
|
workId: string | null;
|
||||||
work: WorkRelation;
|
work: WorkRelation | null;
|
||||||
serviceId: string;
|
serviceId: string | null;
|
||||||
service: ServiceRelation;
|
service: ServiceRelation | null;
|
||||||
}[];
|
}[];
|
||||||
|
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -237,8 +237,9 @@ export type QuotationFull = {
|
||||||
totalPrice: number;
|
totalPrice: number;
|
||||||
urgent: boolean;
|
urgent: boolean;
|
||||||
workerCount: number;
|
workerCount: number;
|
||||||
payBillDate: string | Date;
|
payBillDate: string | Date | null;
|
||||||
paySplitCount: number;
|
paySplitCount: number | null;
|
||||||
|
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||||
date: string | Date;
|
date: string | Date;
|
||||||
dueDate: string | Date;
|
dueDate: string | Date;
|
||||||
|
|
@ -261,21 +262,21 @@ export type QuotationFull = {
|
||||||
|
|
||||||
export type QuotationPayload = {
|
export type QuotationPayload = {
|
||||||
productServiceList: {
|
productServiceList: {
|
||||||
vat: number;
|
vat?: number;
|
||||||
pricePerUnit: number;
|
pricePerUnit?: number;
|
||||||
discount: number;
|
discount?: number;
|
||||||
amount: number;
|
amount: number;
|
||||||
productId: string;
|
product: ProductRelation;
|
||||||
workId: string;
|
work?: WorkRelation | null;
|
||||||
serviceId: string;
|
service?: ServiceRelation | null;
|
||||||
}[];
|
}[];
|
||||||
urgent: boolean;
|
|
||||||
customerBranchId: string;
|
customerBranchId: string;
|
||||||
|
urgent: boolean;
|
||||||
worker: EmployeeWorker[];
|
worker: EmployeeWorker[];
|
||||||
workerCount: 0;
|
workerCount: 0;
|
||||||
payBillDate: Date;
|
payBillDate?: Date | null;
|
||||||
paySplit: Date[];
|
paySplit: { no: number; date: string | Date; amount: number }[];
|
||||||
paySplitCount: number; // int
|
paySplitCount?: number | null; // int
|
||||||
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
payCondition: 'Full' | 'Split' | 'BillFull' | 'BillSplit';
|
||||||
dueDate: Date;
|
dueDate: Date;
|
||||||
documentReceivePoint: string;
|
documentReceivePoint: string;
|
||||||
|
|
@ -288,8 +289,8 @@ export type QuotationPayload = {
|
||||||
|
|
||||||
export type EmployeeWorker = {
|
export type EmployeeWorker = {
|
||||||
id?: string;
|
id?: string;
|
||||||
alienReferencNumber: string;
|
alienReferencNumber?: string;
|
||||||
documentExpireDate: Date | undefined;
|
documentExpireDate?: Date | undefined;
|
||||||
lastNameEN: string;
|
lastNameEN: string;
|
||||||
lastName: string;
|
lastName: string;
|
||||||
middleNameEN: string;
|
middleNameEN: string;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue