From fa7c2bf49bb455c0a7f84b8e083b3bf693e4598f 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 --- Koha/Account/Offsets.pm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Koha/Account/Offsets.pm b/Koha/Account/Offsets.pm index bcc5a6486b..9b18a61eae 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.19.1