X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=Koha%2FAccount.pm;h=304d0e2743cbfd49ade62ebe9550b2038d740173;hb=d3ff671f215398ad51a6ce550c33c0c6ca3aa30a;hp=4b68f2aaa9bb21e12dd05a786c3f1f2ad669e9d2;hpb=85c474e59761e2bb27d9921180752249b5edca9e;p=srvgit diff --git a/Koha/Account.pm b/Koha/Account.pm index 4b68f2aaa9..304d0e2743 100644 --- a/Koha/Account.pm +++ b/Koha/Account.pm @@ -428,14 +428,12 @@ my $lines = Koha::Account->new({ patron_id => $patron_id })->outstanding_debits; sub outstanding_debits { my ($self) = @_; - my $lines = $self->lines->search( + return $self->lines->search( { amount => { '>' => 0 }, amountoutstanding => { '>' => 0 } } ); - - return $lines; } =head3 outstanding_credits @@ -447,14 +445,12 @@ my $lines = Koha::Account->new({ patron_id => $patron_id })->outstanding_credits sub outstanding_credits { my ($self) = @_; - my $lines = $self->lines->search( + return $self->lines->search( { amount => { '<' => 0 }, amountoutstanding => { '<' => 0 } } ); - - return $lines; } =head3 non_issues_charges