From a3fb888b38877251e31d75beb8a45d872052db67 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Tue, 24 Apr 2018 20:57:17 +0000 Subject: [PATCH] Bug 20656: Don't print lines that have no balance on print summary To test: 1 - Add at least two fines to a patron 2 - Pay off one of them 3 - Print summary - all 3 lines show 4 - Apply patch 5 - Print summary - only line with balance shows Signed-off-by: Katrin Fischer --- members/summary-print.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/summary-print.pl b/members/summary-print.pl index 342685b..352b497 100755 --- a/members/summary-print.pl +++ b/members/summary-print.pl @@ -49,7 +49,7 @@ output_and_exit_if_error( $input, $cookie, $template, { module => 'members', log my $total = $patron->account->balance; my $accts = Koha::Account::Lines->search( - { borrowernumber => $patron->borrowernumber }, + { borrowernumber => $patron->borrowernumber, amountoutstanding => { '!=' => 0 } }, { order_by => { -desc => 'accountlines_id' } } ); -- 2.1.4