]> git.koha-community.org Git - koha.git/commit
Bug 21896: Add Koha::Account::normalize_balance
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 27 Nov 2018 22:34:29 +0000 (19:34 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 29 Nov 2018 18:46:13 +0000 (18:46 +0000)
commit1176947b42342ca725020455361fe092255e4d04
tree53f006263f2fabf59dd978be54c86ae130c64418
parent98bfe5d93cb6715b3095309082b241aaafe869da
Bug 21896: Add Koha::Account::normalize_balance

This patch adds the normalize_balance() method to Koha::Account. Its
purpose is to apply outstanding credits (i.e. manual ones ore remaining
amounts like in the case of refunds) to outstanding debts.

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

Signed-off-by: Christopher Brannon <cbrannon@cdalibrary.org>
Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Account.pm