get standing penalties via pcrud
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Dec 2008 19:17:01 +0000 (19:17 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 30 Dec 2008 19:17:01 +0000 (19:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@11710 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js
Open-ILS/xul/staff_client/chrome/content/main/constants.js

index cee3eaa..1993489 100644 (file)
@@ -515,6 +515,27 @@ OpenILS.data.prototype = {
                this.chain.push(
                        function() {
                                var f = gen_fm_retrieval_func(
+                                       'csp',
+                                       [
+                                               api.FM_CSP_PCRUD_SEARCH.app,
+                                               api.FM_CSP_PCRUD_SEARCH.method,
+                                               [ obj.session.key, {"id":{"!=":null}}, {"order_by":{"csp":"id"}} ],
+                                               false
+                                       ]
+                               );
+                               try {
+                                       f();
+                               } catch(E) {
+                                       var error = 'Error: ' + js2JSON(E);
+                                       obj.error.sdump('D_ERROR',error);
+                                       throw(E);
+                               }
+                       }
+               );
+
+               this.chain.push(
+                       function() {
+                               var f = gen_fm_retrieval_func(
                                        'au',
                                        [
                                                api.FM_AU_RETRIEVE_VIA_SESSION.app,
index 85fda94..448d2b3 100644 (file)
@@ -161,6 +161,7 @@ const api = {
        'FM_CNAL_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.net_access_level.retrieve.all', 'secure' : false },
        'FM_CNCT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.non_cat_types.retrieve.all', 'secure' : false },
        'FM_CRAHP_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.config.rules.age_hold_protect.retrieve.all', 'secure' : false },
+    'FM_CSP_PCRUD_SEARCH' : { 'app' : 'open-ils.pcrud', 'method' : 'open-ils.pcrud.search.csp.atomic', 'secure' : false },
        'FM_CST_RETRIEVE' : { 'app' : 'open-ils.actor', 'method' : 'open-ils.actor.standings.retrieve', 'secure' : false },
        'FM_MB_CREATE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billing.create' },
        'FM_MB_RETRIEVE_VIA_MBTS_ID' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.money.billing.retrieve.all' },