]> git.koha-community.org Git - koha.git/commit
Bug 20946: Add Koha::Account::outstanding_debits
authorTomas Cohen Arazi <tomascohen@theke.io>
Sat, 23 Jun 2018 08:41:00 +0000 (05:41 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Fri, 6 Jul 2018 10:33:13 +0000 (10:33 +0000)
commit0e45263492dbd8123bf2507aad6dc45d95c4902c
treeec608d87df834907a227c373d88714d896536c35
parent302224798333eee6a67822f994474a2263a75de9
Bug 20946: Add Koha::Account::outstanding_debits

This patch adds a handy method that returns the total for outstanding
debits (i.e. those that haven't been canceled with credits), and the
corresponding Koha::Account::Line objects.

Unit tests are added.

To test:
- Apply this patch
- 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
t/db_dependent/Koha/Account.t [new file with mode: 0755]