More aggressive recalc of standing penalties collab/phasefx/recalculate_penalties_after_usr_update
authorJason Etheridge <jason@esilibrary.com>
Tue, 3 Jan 2012 20:46:25 +0000 (15:46 -0500)
committerJason Etheridge <jason@esilibrary.com>
Tue, 3 Jan 2012 20:46:25 +0000 (15:46 -0500)
commit1c91e9310077587b87aac78bde8ba6d8ef3c647d
tree752e865aff39b878ab8fbb4885cdf2ea622cd54b
parent1579acb673f1840c9171ea788e4dfa98ce77d54e
More aggressive recalc of standing penalties

In the staff client, the Refresh button in the patron display will explicitly
ask the server to recalculate standing penalties for the patron. Other automatic
refresh-like behavior meant to synchronize parts of the patron display will not
do this.

This change tweaks the logic to ask for a recalculation with all refresh-like
behavior in the patron display, and will catch such things as staff changing the
user's permisssion profile.

An example of how you might test this:

Admin -> Local Administration -> Group Penalty Thresholds

New Penalty Threshold

Group: Volunteers
Org Unit: CONS
Penalty: PATRON_EXCEEDS_FINES
Threshold: 1

Save

Register user with Profile of Patrons

Load patron, Bills, Bill Patron, Amount: 5, Submit this Bill

Edit

Main (Profile) Permission Group: Volunteers, Save

The interface should refresh and show a Maximum Bills penalty in the patron
summary.

Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/xul/staff_client/server/patron/display.js