]> git.koha-community.org Git - koha.git/commit
Bug 20942: (QA follow-up) Use $lines->total_outstanding
authorTomas Cohen Arazi <tomascohen@theke.io>
Mon, 2 Jul 2018 19:18:33 +0000 (16:18 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 2 Aug 2018 13:43:03 +0000 (14:43 +0100)
commit9d025f422b372c3cb0383dd6cced89d7d15f088e
treec40e6d6540b87f90e9cbd6bde54d82e7451a6ef2
parenta9237380b51b297d4be2f9f9eb7c9bd6fda0ec26
Bug 20942: (QA follow-up) Use $lines->total_outstanding

This patch makes the controller code use $lines->total_outstanding
instead of expecting ->outstanding_debits and ->outstanding_credits
return the total.

Tests should pass as before. No behaviour change is expected.

To test:
- Run:
  $ kshell
 k$ prove t/db_dependent/api/v1/patrons_accounts.t
=> SUCCESS: Tests still pass, no behaviour change.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 6672b26d16065d877d6d7300830fc3d619b09898)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/Patrons/Account.pm