Bugzilla – Attachment 192332 Details for
Bug 40871
Voided payments still appear as bankable in the cash register
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40871: Exclude void payments from cashup/bankable transactions
Bug-40871-Exclude-void-payments-from-cashupbankabl.patch (text/plain), 1.21 KB, created by
Laura Escamilla
on 2026-02-02 15:27:38 UTC
(
hide
)
Description:
Bug 40871: Exclude void payments from cashup/bankable transactions
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2026-02-02 15:27:38 UTC
Size:
1.21 KB
patch
obsolete
>From ffa910a27c10668ff5f0f9b705d66933566ee836 Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 40871
:
192331
| 192332