Bug 13098: Fix POD for Koha::Account::Offsets::total
authorTomas Cohen Arazi <tomascohen@theke.io>
Sat, 27 Oct 2018 11:34:39 +0000 (08:34 -0300)
committerNick 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

index bcc5a64..9b18a61 100644 (file)
@@ -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