[open-ils-commits] r11709 - trunk/Open-ILS/xul/staff_client/server/patron
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Dec 30 12:21:27 EST 2008
Author: phasefx
Date: 2008-12-30 12:21:25 -0500 (Tue, 30 Dec 2008)
New Revision: 11709
Modified:
trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.js
Log:
oops. need to use a hash here
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.js 2008-12-30 16:11:42 UTC (rev 11708)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill_wizard.js 2008-12-30 17:21:25 UTC (rev 11709)
@@ -104,15 +104,15 @@
billing_list.sort( function(a,b) { if (a.name()>b.name()) return 1; if (a.name()<b.name()) return -1; return 0; } ), //g.OpenILS.data.list.billing_type.sort(),
function(obj) { return [ obj.name(), obj.id() ]; } //function(obj) { return [ obj, obj ]; }
),
- billing_list.sort( function(a,b) { if (a.name()>b.name()) return 1; if (a.name()<b.name()) return -1; return 0; } )[0]
+ billing_list.sort( function(a,b) { if (a.name()>b.name()) return 1; if (a.name()<b.name()) return -1; return 0; } )[0].id()
);
ml.setAttribute('id','billing_type');
document.getElementById('menu_placeholder').appendChild(ml);
ml.addEventListener(
'command',
function() {
- if ( billing_list[ ml.value ] ) {
- $('bill_amount').value = billing_list[ ml.value ].default_price();
+ if ( g.OpenILS.data.hash.cbt[ ml.value ] ) {
+ $('bill_amount').value = g.OpenILS.data.hash.cbt[ ml.value ].default_price();
}
},
false
@@ -122,8 +122,8 @@
$('billing_location').setAttribute('value', g.OpenILS.data.hash.aou[ g.OpenILS.data.list.au[0].ws_ou() ].name() );
- if ( billing_list[ ml.value ] ) {
- $('bill_amount').value = billing_list[ ml.value ].default_price();
+ if ( g.OpenILS.data.hash.cbt[ ml.value ] ) {
+ $('bill_amount').value = g.OpenILS.data.hash.cbt[ ml.value ].default_price();
}
$('bill_amount').select(); $('bill_amount').focus();
More information about the open-ils-commits
mailing list