[open-ils-commits] [GIT] Evergreen ILS branch rel_3_3 updated. 82ebba292f3e78fa6d4cb7a82d8df096839dc5f2
Evergreen Git
git at git.evergreen-ils.org
Thu May 23 18:08:46 EDT 2019
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".
The branch, rel_3_3 has been updated
via 82ebba292f3e78fa6d4cb7a82d8df096839dc5f2 (commit)
from 9ad353d42b7d1d8f73a2eb131ce02f3db7f7a2f6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 82ebba292f3e78fa6d4cb7a82d8df096839dc5f2
Author: a. bellenir <abelleni at grpl.org>
Date: Mon Mar 11 13:39:00 2019 -0400
LP1775639: Refresh required to see Patron Credit
reload patron data when applying a payment
if the payment will change the patron's credit forward balance.
To test
-------
[1] Bill a patron, then make sure that the "Convert Change to Patron
Credit" checkbox is checked. Pay bill with more than the total
balance. Note that the Credit Available amount in the billing
summary does not change. Refresh the page.
[2] Bill a patron, then use the patron credit added in step 1 to
pay off the bill. Note that again, the Credit Available amount
does not change.
[3] Apply the patch and repeats steps 1 and 2. This time, the Credit
Available field should get updated.
Signed-off-by: a. bellenir <abelleni at grpl.org>
Signed-off-by: Garry Collum <gcollum at gmail.com>
Signed-off-by: Galen Charlton <gmc at equinoxinitiative.org>
diff --git a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
index 9ec2e89e53..14b84c0641 100644
--- a/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
+++ b/Open-ILS/web/js/ui/default/staff/circ/patron/bills.js
@@ -76,6 +76,10 @@ function($q , egCore , egWorkLog , patronSvc) {
// payment API returns the update xact id so we can track it
// for future payments without having to refresh the user.
patronSvc.current.last_xact_id(resp.last_xact_id);
+
+ // reload patron data if credit balance has changed:
+ if(type === 'credit_payment' || patron_credit){ patronSvc.refreshPrimary(); }
+
return resp.payments;
});
}
-----------------------------------------------------------------------
Summary of changes:
Open-ILS/web/js/ui/default/staff/circ/patron/bills.js | 4 ++++
1 file changed, 4 insertions(+)
hooks/post-receive
--
Evergreen ILS
More information about the open-ils-commits
mailing list