From ff1685a721eb6dd21015862ea084e9d978a59384 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Tue, 7 Jan 2025 15:36:12 +0100 Subject: [PATCH] Added rounding and total calc to materialComposing.vue --- components/materialComposing.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) => {