From 36969e272dbddce3f32bbca7673dd8ff1187ad06 Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 7 Sep 2026 20:14:37 +0200 Subject: [PATCH] =?UTF-8?q?KI-AGENT:=20Positive=20Geldtransitbuchungen=20i?= =?UTF-8?q?n=20der=20BWA=20ber=C3=BCcksichtigen?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/pages/accounting/bwa.vue | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/frontend/pages/accounting/bwa.vue b/frontend/pages/accounting/bwa.vue index 6b41656..21140c1 100644 --- a/frontend/pages/accounting/bwa.vue +++ b/frontend/pages/accounting/bwa.vue @@ -154,12 +154,21 @@ const filteredStatementAllocations = computed(() => { return statementAllocations.value.filter((allocation) => matchesSelectedPeriod(getStatementDate(allocation))) }) -const filteredAccountStatementAllocations = computed(() => { +const filteredDirectAccountStatementAllocations = computed(() => { return filteredStatementAllocations.value.filter((allocation) => { if (allocation.account === null || allocation.account === undefined) { return false } + return !allocation?.incominginvoice + && !allocation?.createddocument + && !allocation?.ii_id + && !allocation?.cd_id + }) +}) + +const filteredAccountStatementAllocations = computed(() => { + return filteredDirectAccountStatementAllocations.value.filter((allocation) => { return getStatementAllocationImmediateExpenseAmount(allocation) > 0 }) }) @@ -298,8 +307,7 @@ const accountRows = computed(() => { })) }) - const directBookings = filteredAccountStatementAllocations.value - .filter((allocation) => getStatementAllocationImmediateExpenseAmount(allocation) > 0) + const directBookings = filteredDirectAccountStatementAllocations.value .filter((allocation) => sameId(allocation.account?.id || allocation.account, account.id)) .map((allocation) => { const amount = Number(allocation.amount || 0)