From 1017254bac80f6df6a0be82fe121224311ae75f0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 11 Dec 2017 13:57:39 -0300 Subject: [PATCH] Bug 10021: Only display outstanding fines in 'Pay fines' --- members/pay.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/members/pay.pl b/members/pay.pl index a539ed0daf..c51fde25de 100755 --- a/members/pay.pl +++ b/members/pay.pl @@ -133,7 +133,7 @@ output_html_with_http_headers $input, $cookie, $template->output; sub add_accounts_to_template { my ( $total, undef, undef ) = GetMemberAccountRecords($borrowernumber); - my $account_lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber, }, { order_by => ['accounttype'] }); + my $account_lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber, amountoutstanding => { '!=' => 0 } }, { order_by => ['accounttype'] }); my @accounts; while ( my $account_line = $account_lines->next ) { $account_line = $account_line->unblessed; -- 2.11.0