projects
/
srvgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c90aae
)
Bug 13098: Fix POD for Koha::Account::Offsets::total
author
Tomas Cohen Arazi
<tomascohen@theke.io>
Sat, 27 Oct 2018 11:34:39 +0000
(08:34 -0300)
committer
Nick Clemens
<nick@bywatersolutions.com>
Wed, 31 Oct 2018 13:13:38 +0000
(13:13 +0000)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account/Offsets.pm
patch
|
blob
|
history
diff --git
a/Koha/Account/Offsets.pm
b/Koha/Account/Offsets.pm
index
bcc5a64
..
9b18a61
100644
(file)
--- a/
Koha/Account/Offsets.pm
+++ b/
Koha/Account/Offsets.pm
@@
-35,6
+35,12
@@
Account offsets track the changes made to the balance of account lines
=head2 Class methods
+ my $offsets = Koha::Account::Offsets->search({ ... });
+ my $total = $offsets->total;
+
+Returns the sum of the amounts of the account offsets resultset. If the resultset is
+empty it returns 0.
+
=head3 total
=cut