Bug 21673: Use Koha::Account::Lines->total_amountoutstanding when needed
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Oct 2018 19:55:32 +0000 (16:55 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Tue, 6 Nov 2018 16:44:33 +0000 (16:44 +0000)
commit4d28bc7d3cf2a4e6cb8f384d38b5db984759b9b6
tree9f5b9029e780e2e5843119f86458a62b7b22604c
parent1e5e9f5e808d9e17c704f5bd757bc6d51d43059b
Bug 21673: Use Koha::Account::Lines->total_amountoutstanding when needed

There are several times the same pattern to retrieve the sum of
amountoutstanding columns for Koha::Account::Line set.
We should use Koha::Account::Lines->total_outstanding instead.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

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