projects
/
srvgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bug 21909: Make Koha::Account::outstanding_* preserve context
[srvgit]
/
Koha
/
Account.pm
diff --git
a/Koha/Account.pm
b/Koha/Account.pm
index
4b68f2a
..
304d0e2
100644
(file)
--- 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) = @_;
sub outstanding_debits {
my ($self) = @_;
-
my $lines =
$self->lines->search(
+
return
$self->lines->search(
{
amount => { '>' => 0 },
amountoutstanding => { '>' => 0 }
}
);
{
amount => { '>' => 0 },
amountoutstanding => { '>' => 0 }
}
);
-
- return $lines;
}
=head3 outstanding_credits
}
=head3 outstanding_credits
@@
-447,14
+445,12
@@
my $lines = Koha::Account->new({ patron_id => $patron_id })->outstanding_credits
sub outstanding_credits {
my ($self) = @_;
sub outstanding_credits {
my ($self) = @_;
-
my $lines =
$self->lines->search(
+
return
$self->lines->search(
{
amount => { '<' => 0 },
amountoutstanding => { '<' => 0 }
}
);
{
amount => { '<' => 0 },
amountoutstanding => { '<' => 0 }
}
);
-
- return $lines;
}
=head3 non_issues_charges
}
=head3 non_issues_charges