[Koha-bugs] [Bug 20942] Add route to get patron's account balance

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 10 19:14:14 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20942

--- Comment #16 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 76812
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=76812&action=edit
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 at theke.io>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list