diff --git a/components/materialComposing.vue b/components/materialComposing.vue index d43ebb5..3d21a09 100644 --- a/components/materialComposing.vue +++ b/components/materialComposing.vue @@ -56,6 +56,8 @@ const setRowData = (row) => { row.unit = product.unit row.price = product.sellingPrice + + calculateTotalMaterialPrice() } diff --git a/components/personalComposing.vue b/components/personalComposing.vue index 405519a..7cb27f5 100644 --- a/components/personalComposing.vue +++ b/components/personalComposing.vue @@ -57,6 +57,8 @@ const setRowData = (row) => { row.purchasePrice = hourrate.purchasePrice row.price = hourrate.sellingPrice + + calculateTotalPersonalPrice() } diff --git a/pages/createDocument/index.vue b/pages/createDocument/index.vue index 42a9851..806c50f 100644 --- a/pages/createDocument/index.vue +++ b/pages/createDocument/index.vue @@ -305,7 +305,7 @@ const isPaid = (item) => { let amountPaid = 0 item.statementallocations.forEach(allocation => amountPaid += allocation.amount) - return Number(amountPaid.toFixed(2)) === Number(calculateDocSum(item)) + return Number(amountPaid.toFixed(2)) === useSum().getCreatedDocumentSum(item, items.value) }