refactor: quotation tree view

This commit is contained in:
puriphatt 2024-10-01 09:53:24 +07:00
parent fde6335706
commit 009d5d8adf
2 changed files with 52 additions and 15 deletions

View file

@ -393,7 +393,10 @@ async function openProductServiceTree(node: Node, anchestor?: Node[]) {
id: w.id,
title: w.name,
subtitle: ' ',
attributes: w.attributes,
attributes: {
additional: w.attributes.additional,
showTotalPrice: w.attributes.showTotalPrice,
},
type: 'work',
displayDropIcon: w.productOnWork.length > 0,
children: w.productOnWork.map((p) => ({