KI-AGENT: BWA-Ausgaben nach Kontosaldo berechnen
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 23s
Build and Push Docker Images / build-frontend (push) Successful in 1m11s
Build and Push Docker Images / build-website (push) Successful in 23s
Build and Push Docker Images / build-central-services-api (push) Successful in 22s
Build and Push Docker Images / build-central-services-admin (push) Successful in 22s
Build and Push Docker Images / build-docs (push) Successful in 1m20s

This commit is contained in:
2026-09-07 21:04:31 +02:00
parent 23d2dc0ca8
commit 252cbd496d
3 changed files with 41 additions and 14 deletions

View File

@@ -11,7 +11,7 @@ import {
isDepreciationBookingMode,
normalizeIncomingInvoiceAccount,
getStatementAllocationImmediateExpenseAmount,
getStatementAllocationImmediateExpenseImpact
getStatementAccountExpenseTotal
} from "~/composables/useDepreciation"
const router = useRouter()
@@ -191,9 +191,7 @@ const expenseNetTotal = computed(() => {
return sum + getIncomingInvoiceImmediateExpenseNet(invoice)
}, 0)
const directAccountExpenses = filteredStatementAllocations.value.reduce((sum, allocation) => {
return sum + Number(getStatementAllocationImmediateExpenseImpact(allocation) || 0)
}, 0)
const directAccountExpenses = getStatementAccountExpenseTotal(filteredStatementAllocations.value)
const depreciations = depreciationTotal.value
@@ -203,9 +201,7 @@ const expenseNetTotal = computed(() => {
const expenseGrossTotal = computed(() => {
const invoiceExpenses = filteredIncomingInvoices.value.reduce((sum, invoice) => sum + getIncomingInvoiceImmediateExpenseGross(invoice), 0)
const directAccountExpenses = filteredStatementAllocations.value.reduce((sum, allocation) => {
return sum + Number(getStatementAllocationImmediateExpenseImpact(allocation) || 0)
}, 0)
const directAccountExpenses = getStatementAccountExpenseTotal(filteredStatementAllocations.value)
const depreciations = depreciationTotal.value