LP#1708488: adjust how patron financial summary is exposed to checkout receipts user/gmcharlt/lp1708488_patron_money_on_checkout_receipts
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 7 Nov 2017 18:41:55 +0000 (13:41 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Tue, 7 Nov 2017 18:44:09 +0000 (13:44 -0500)
commit4366bd43db4c773345f4ce72f7a02383447c5c45
tree44acbfe12ca9a97758744b738aa6de2767766d2b
parent1046026777c3ce7e5c6f7c5a6011a8a6ca153214
LP#1708488: adjust how patron financial summary is exposed to checkout receipts

This patch builds on the previous patch by grabbing the patron's
financial summary from the patron stats values. The "patron_money"
template value is no longer associated with a particular loan, meaning
that you can do things like this:

<span ng-if="patron_money.balance_owed">You owe the library ${{patron_money.balance_owed}}</span>

The additional values include

* patron_money.balance_owed - current balance
* patron_money.total_paid - payments made on outstanding fines/fees
* patron_money.total_owed - total of outstanding fines/fees

Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/templates/staff/share/print_templates/t_checkout.tt2
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js