feat: add installment no to quotation data

This is for when issue invoice.
This commit is contained in:
Methapon Metanipat 2024-10-25 09:01:32 +07:00
parent af463ee509
commit 73ec9bd323
3 changed files with 8 additions and 0 deletions

View file

@ -76,6 +76,7 @@ type QuotationCreate = {
productId: string;
amount: number;
discount?: number;
installmentNo?: number;
workerIndex?: number[];
}[];
};
@ -130,6 +131,7 @@ type QuotationUpdate = {
productId: string;
amount: number;
discount?: number;
installmentNo?: number;
workerIndex?: number[];
}[];
};
@ -412,6 +414,7 @@ export class QuotationController extends Controller {
pricePerUnit,
amount: v.amount,
discount: v.discount || 0,
installmentNo: v.installmentNo,
vat,
worker: {
create: sortedEmployeeId
@ -667,6 +670,7 @@ export class QuotationController extends Controller {
pricePerUnit,
amount: v.amount,
discount: v.discount || 0,
installmentNo: v.installmentNo,
vat,
worker: {
create: sortedEmployeeId