From fd13428bc5fac28bce07590881a491d697452037 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 Signed-off-by: Josef Moravec Signed-off-by: Nick Clemens (cherry picked from commit 0fd329724b58c34d850a5b5f162ad0c0f2428eb4) Signed-off-by: Martin Renvoize --- 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 342685bcdb..352b49755e 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.39.5