From: phasefx Date: Tue, 18 Nov 2008 18:17:36 +0000 (+0000) Subject: Use new org-specific billing_type's with default prices, and remove the 'Billing... X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=e2c248d12cbde661728a725958359e0735e262e4;p=Evergreen.git Use new org-specific billing_type's with default prices, and remove the 'Billing Added' alert speedbump git-svn-id: svn://svn.open-ils.org/ILS/trunk@11257 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index 4cb9345a55..0fad32f613 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -506,7 +506,6 @@ OpenILS.data.prototype = { } ); - this.chain.push( function() { var f = gen_fm_retrieval_func( @@ -744,7 +743,26 @@ OpenILS.data.prototype = { } ); - + this.chain.push( + function() { + var f = gen_fm_retrieval_func( + 'cbt', + [ + api.FM_CBT_RETRIEVE.app, + api.FM_CBT_RETRIEVE.method, + [ obj.session.key, obj.list.au[0].ws_ou() ], + false + ] + ); + try { + f(); + } catch(E) { + var error = 'Error: ' + js2JSON(E); + obj.error.sdump('D_ERROR',error); + throw(E); + } + } + ); if (typeof this.on_complete == 'function') { 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 c9b924e457..28e2def8b1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/constants.js @@ -140,6 +140,7 @@ const api = { 'FM_BRE_DELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.delete', 'secure' : false }, 'FM_BRE_UNDELETE' : { 'app' : 'open-ils.cat', 'method' : 'open-ils.cat.biblio.record_entry.undelete', 'secure' : false }, 'FM_BRN_FROM_MARCXML' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.z3950.marcxml_to_brn', 'secure' : false }, + 'FM_CBT_RETRIEVE' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.billing_type.ranged.retrieve.all', 'secure' : false }, 'FM_CCS_RETRIEVE' : { 'app' : 'open-ils.search', 'method' : 'open-ils.search.config.copy_status.retrieve.all', 'secure' : false }, 'FM_CIRC_DETAILS' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.fleshed.retrieve' }, 'FM_CIRC_DETAILS.authoritative' : { 'app' : 'open-ils.circ', 'method' : 'open-ils.circ.fleshed.retrieve.authoritative' }, diff --git a/Open-ILS/xul/staff_client/server/patron/bill_wizard.js b/Open-ILS/xul/staff_client/server/patron/bill_wizard.js index cf67a2da3d..e7451a111f 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_wizard.js +++ b/Open-ILS/xul/staff_client/server/patron/bill_wizard.js @@ -100,18 +100,27 @@ function patron_bill_init() { JSAN.use('util.functional'); var ml = util.widgets.make_menulist( util.functional.map_list( - g.OpenILS.data.list.billing_type.sort(), - function(obj) { return [ obj, obj ]; } - ) + g.OpenILS.data.list.cbt.sort( function(a,b) { if (a.name()>b.name()) return 1; if (a.name()b.name()) return 1; if (a.name()