recalc penalties
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Oct 2006 21:07:26 +0000 (21:07 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 12 Oct 2006 21:07:26 +0000 (21:07 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6453 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/constants.js
Open-ILS/xul/staff_client/server/patron/display.js

index c35aa7e..caa96ab 100644 (file)
@@ -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 = {
index 1694275..714aaeb 100644 (file)
@@ -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();
                                                }
                                        ],