Fixed Auswertung Calc
This commit is contained in:
@@ -730,20 +730,22 @@ const documentReport = computed(() => {
|
|||||||
|
|
||||||
if(service.personalComposition) {
|
if(service.personalComposition) {
|
||||||
service.personalComposition.forEach(entry => {
|
service.personalComposition.forEach(entry => {
|
||||||
totalHoursFromServices.total += entry.quantity
|
totalHoursFromServices.total += entry.quantity * row.quantity
|
||||||
|
|
||||||
totalHoursFromServices.totalPurchasePrice += entry.quantity * entry.purchasePrice
|
totalHoursFromServices.totalPurchasePrice += entry.quantity * entry.purchasePrice * row.quantity
|
||||||
totalHoursSellingPrice += entry.quantity * entry.price
|
totalHoursSellingPrice += entry.quantity * entry.price * row.quantity
|
||||||
|
|
||||||
if(totalHoursFromServices.byName[entry.name]) {
|
if(totalHoursFromServices.byName[entry.name]) {
|
||||||
totalHoursFromServices.byName[entry.name] += entry.quantity
|
totalHoursFromServices.byName[entry.name] += entry.quantity * row.quantity
|
||||||
} else {
|
} 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
|
//totalProductsPurchasePrice += product.purchasePrice * row.quantity
|
||||||
|
|||||||
Reference in New Issue
Block a user