Added rounding and total calc to materialComposing.vue
This commit is contained in:
@@ -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) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user