Bug 10021: Only display outstanding fines in 'Pay fines'
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
ff9a69ccbd
commit
34cdd536cb
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ output_html_with_http_headers $input, $cookie, $template->output;
|
||||||
sub add_accounts_to_template {
|
sub add_accounts_to_template {
|
||||||
|
|
||||||
my ( $total, undef, undef ) = GetMemberAccountRecords($borrowernumber);
|
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;
|
my @accounts;
|
||||||
while ( my $account_line = $account_lines->next ) {
|
while ( my $account_line = $account_lines->next ) {
|
||||||
$account_line = $account_line->unblessed;
|
$account_line = $account_line->unblessed;
|
||||||
|
|
Loading…
Reference in a new issue