From dae3b172099dbee11e24931acba09647a42485c0 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Sat, 27 Oct 2018 08:34:39 -0300 Subject: [PATCH] Bug 13098: Fix POD for Koha::Account::Offsets::total Signed-off-by: Tomas Cohen Arazi Signed-off-by: Josef Moravec --- Koha/Account/Offsets.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Koha/Account/Offsets.pm b/Koha/Account/Offsets.pm index bcc5a64..9b18a61 100644 --- 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 -- 2.1.4