Bug 20990: Add Koha::Account->outstanding_credits
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 25 Jun 2018 14:15:14 +0000 (11:15 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 13 Jul 2018 10:34:30 +0000 (10:34 +0000)
commit4ee390cbb7ce0726c4d80c4581ef1a387abb47ce
tree63db42a2017f1c4e2a4c67b558cf67bb89fffb87
parent0fb5019b7142396f0cd2cec1132dba767b0c64b2
Bug 20990: Add Koha::Account->outstanding_credits

This patch adds a method that retrieves (for a patron's account) the
outstanding credits (i.e. those that haven't been applied to any debit.

To test:
- Apply this patches
- Run:
  $ kshell
 k$ prove t/db_dependent/Koha/Account.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm