From 919ffdfb9daa325fd1008c0ce8805f5b029a60f1 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