diff --git a/components/materialComposing.vue b/components/materialComposing.vue index 23d1282..15c566f 100644 --- a/components/materialComposing.vue +++ b/components/materialComposing.vue @@ -47,7 +47,8 @@ const calculateTotalMaterialPrice = () => { 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) => {