Fixed Auswertung Calc

This commit is contained in:
2025-04-24 15:03:05 +02:00
parent 81165c6954
commit 795a8662f9

View File

@@ -730,20 +730,22 @@ const documentReport = computed(() => {
if(service.personalComposition) {
service.personalComposition.forEach(entry => {
totalHoursFromServices.total += entry.quantity
totalHoursFromServices.total += entry.quantity * row.quantity
totalHoursFromServices.totalPurchasePrice += entry.quantity * entry.purchasePrice
totalHoursSellingPrice += entry.quantity * entry.price
totalHoursFromServices.totalPurchasePrice += entry.quantity * entry.purchasePrice * row.quantity
totalHoursSellingPrice += entry.quantity * entry.price * row.quantity
if(totalHoursFromServices.byName[entry.name]) {
totalHoursFromServices.byName[entry.name] += entry.quantity
totalHoursFromServices.byName[entry.name] += entry.quantity * row.quantity
} else {
totalHoursFromServices.byName[entry.name] = entry.quantity
totalHoursFromServices.byName[entry.name] = entry.quantity * row.quantity
}
})
} else {
//totalHoursSellingPrice += service.sellingPriceComposed.totalWorker * row.quantity
}
//totalProductsPurchasePrice += product.purchasePrice * row.quantity