From ffa910a27c10668ff5f0f9b705d66933566ee836 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Thu, 29 Jan 2026 22:02:00 +0000 Subject: [PATCH] Bug 40871: Exclude void payments from cashup/bankable transactions --- Koha/Cash/Register/Cashup.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Koha/Cash/Register/Cashup.pm b/Koha/Cash/Register/Cashup.pm index f21c2b3a2f..7570b22e5e 100644 --- a/Koha/Cash/Register/Cashup.pm +++ b/Koha/Cash/Register/Cashup.pm @@ -80,10 +80,13 @@ sub summary { : { 'date' => { '<' => $self->timestamp } }; my $payout_transactions = $self->register->accountlines->search( - { %{$conditions}, credit_type_code => undef }, + { + %{$conditions}, credit_type_code => undef, debit_type_code => { '!=' => 'VOID' }, + status => [ { '!=' => 'VOID' }, undef ], + }, ); my $income_transactions = $self->register->accountlines->search( - { %{$conditions}, debit_type_code => undef }, + { %{$conditions}, debit_type_code => undef, status => [ { '!=' => 'VOID' }, undef ], }, ); my $income_summary = Koha::Account::Offsets->search( -- 2.39.5