@@ -, +, @@ - Add a $5 credit to a patron - Add a $1 fine - Go to the 'Pay fines' tab - Try to pay all fines (Observe you cannot do that) - Apply this patch - Reload - Sign off :-D --- members/pay.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/members/pay.pl +++ a/members/pay.pl @@ -140,7 +140,10 @@ sub add_accounts_to_template { my $patron = Koha::Patrons->find( $borrowernumber ); my $total = $patron->account->balance; - my $account_lines = Koha::Account::Lines->search({ borrowernumber => $borrowernumber, amountoutstanding => { '!=' => 0 } }, { 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; --