Bug 20990: Add Koha::Account->outstanding_credits
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 25 Jun 2018 14:15:14 +0000 (11:15 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 2 Aug 2018 17:03:35 +0000 (18:03 +0100)
commit3e1519beccd65550763f664ce5c734a39610ccac
treef84394a6795dee71521d423a917e018f6f0c0333
parent266f6f55bf4ba26c287d2258825463861456bf86
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>
(cherry picked from commit 4ee390cbb7ce0726c4d80c4581ef1a387abb47ce)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account.pm