feat: convert back installment no function

This commit is contained in:
Methapon Metanipat 2024-10-28 15:03:13 +07:00
parent a498c24e1e
commit 69d1418ba7

View file

@ -18,6 +18,7 @@ export type ProductTree = {
pricePerUnit: number;
discount: number;
amount: number;
installmentNo?: number;
serviceId?: string;
service?: QuotationFull['productServiceList'][number]['service'];
workId?: string;
@ -34,6 +35,7 @@ export function quotationProductTree(
pricePerUnit: number;
discount: number;
amount: number;
installmentNo?: number;
service?: QuotationFull['productServiceList'][number]['service'];
work?: QuotationFull['productServiceList'][number]['work'];
product: QuotationFull['productServiceList'][number]['product'];
@ -135,6 +137,7 @@ export function quotationProductTree(
amount: current.amount,
productId: current.product.id,
product: current.product,
installmentNo: current.installmentNo,
},
icon: 'mdi-shopping-outline',
bg: 'hsla(var(--teal-10-hsl)/0.1)',