From: pines Date: Thu, 12 Oct 2006 21:07:26 +0000 (+0000) Subject: recalc penalties X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8af170c68a2ee671b63eaa4596b2c5ea83020cd2;p=Evergreen.git recalc penalties git-svn-id: svn://svn.open-ils.org/ILS/trunk@6453 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/main/constants.js index c35aa7ed0d..caa96ab5f9 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -161,6 +161,7 @@ const api = { 'MARC_XML_RECORD_UPDATE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record.xml.update' }, 'MERGE_RECORDS' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.records.merge' }, 'PATRON_BARCODE_EXISTS' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.barcode.exists' }, + 'RECALCULATE_STANDING_PENALTIES' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.user.penalties.update' }, } const urls = { diff --git a/Open-ILS/xul/staff_client/server/patron/display.js b/Open-ILS/xul/staff_client/server/patron/display.js index 1694275e30..714aaebdb4 100644 --- a/Open-ILS/xul/staff_client/server/patron/display.js +++ b/Open-ILS/xul/staff_client/server/patron/display.js @@ -134,6 +134,10 @@ patron.display.prototype = { 'cmd_patron_refresh' : [ ['command'], function(ev) { + obj.network.simple_request( + 'RECALCULATE_STANDING_PENALTIES', + [ ses(), obj.patron.id() ] + ); obj.refresh_all(); } ],