LP#1708488: adjust how patron financial summary is exposed to checkout receipts
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 7 Nov 2017 18:41:55 +0000 (13:41 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 9 Nov 2017 16:23:31 +0000 (11:23 -0500)
commita4c36a7f0e258614cc659c9ee5b5e96829955dcd
treea99b4ba9c26ab0aba3e4e5abfc90a53e170bee46
parent081a6b36bc4dbeed39ba267d68576908e2d2e2b3
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>
Signed-off-by: Terra McCanna <tmccanna@georgialibraries.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