@@ -, +, @@ --- members/pay.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/members/pay.pl +++ a/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; --