Bug 13098: Add Koha::Account::Offsets->total
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 18 Oct 2018 15:57:33 +0000 (12:57 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 31 Oct 2018 13:12:25 +0000 (13:12 +0000)
commit9acfe172574d91da9b6724c1b9e61a00a0017271
treedfe3af562981bb7dd83dd117d8470158d2a77ec6
parent0275c36d962a284453c36b0472a3a5ef87329fc6
Bug 13098: Add Koha::Account::Offsets->total

This patch introduces this trivial method for returning the sum0 result
of the amount columns of a Koha::Account::Offsets set.

To test:
- Apply this patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account/Offsets.t
- Sign off :-D

Followed test plan, patch worked as described
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account/Offsets.pm
t/db_dependent/Koha/Account/Offsets.t [new file with mode: 0755]