From: a. bellenir Date: Mon, 11 Mar 2019 17:39:00 +0000 (-0400) Subject: LP1775639: Refresh required to see Patron Credit X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=df7203349e6e973be646ee9166355aba5d589923;p=working%2FEvergreen.git 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. Signed-off-by: a. bellenir --- 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 ceda5c82d4..ba2e285200 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; }); }