Added rounding and total calc to materialComposing.vue

This commit is contained in:
2025-01-07 15:36:12 +01:00
parent 0baba63542
commit ff1685a721

View File

@@ -47,7 +47,8 @@ const calculateTotalMaterialPrice = () => {
total += rowSum total += rowSum
}) })
props.item.sellingPriceComposed.material = total props.item.sellingPriceComposed.material = Number(total.toFixed(2))
props.item.sellingPriceComposed.total = Number((props.item.sellingPriceComposed.worker + props.item.sellingPriceComposed.material).toFixed(2))
} }
const setRowData = (row) => { const setRowData = (row) => {