]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 10 Jul 2018 06:42:08 +0000 (07:42 +0100)
commitf91b9ec6457791623dd65b44f10cf682e00136ab
treeaca11a144c60e7addcf30b7a820ccc4c37376693
parentad004d366b5a1210dfa0cd80ea9bc6dc280e400c
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>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Account.pm
t/db_dependent/Koha/Account.t [new file with mode: 0755]