From 34cdd536cb16436b407947eecd6975b8d4f44467 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' Signed-off-by: Jonathan Druart --- 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.39.5