m + document.getElementById('circStrings').getFormattedString('staff.circ.utils.billable.amount', [row.my.acp.barcode(), util.money.sanitize(bill.balance_owed())]) + ' '
);
no_change_label.setAttribute('hidden','false');
- no_change_label.setAttribute('onclick','xulG.new_patron_tab({},{"id" : '+bill.usr()+' })');
+ no_change_label.setAttribute('onclick','xulG.new_patron_tab({},{"id" : '+bill.usr()+', "show" : "bills" })');
}
if (document.getElementById('fine_tally')) {
var amount = Number( document.getElementById('fine_tally').getAttribute('amount') ) + Number( bill.balance_owed() );
'barcode' : obj.barcode,
'id' : obj.id,
'refresh' : function() { obj.refresh_all(); },
- 'on_finished' : obj.gen_patron_summary_finish_func(),
+ 'on_finished' : obj.gen_patron_summary_finish_func(params),
'stop_sign_page' : obj.gen_patron_stop_sign_page_func(),
'spawn_group_interface' : function() { obj.spawn_group_interface(); },
'new_patron_tab' : function(a,b) { return xulG.new_patron_tab(a,b); },
);
netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
obj.summary_window = get_contentWindow(frame);
+
} else {
obj.render_search_form(params);
}
}
},
- 'gen_patron_summary_finish_func' : function() {
+ 'gen_patron_summary_finish_func' : function(display_params) {
var obj = this;
return function(patron,params) {
}
}
- if (!obj._checkout_spawned) {
- obj.spawn_checkout_interface();
- obj._checkout_spawned = true;
+ if (display_params['show']) {
+ setTimeout(
+ function() {
+ switch(display_params['show']) {
+ case 'bills' : util.widgets.dispatch('command','cmd_patron_bills'); break;
+ }
+ },
+ 0
+ );
+ } else {
+ if (!obj._checkout_spawned) {
+ obj.spawn_checkout_interface();
+ obj._checkout_spawned = true;
+ }
}
if (obj.stop_checkouts && obj.checkout_window) {
'barcode' : xul_param('barcode'),
'id' : xul_param('id'),
'query' : xul_param('query'),
- 'doit' : xul_param('doit')
+ 'doit' : xul_param('doit'),
+ 'show' : xul_param('show')
} );
//document.documentElement.style.setProperty('font-size-adjust','1','important');
'barcode' : xul_param('barcode'),
'id' : xul_param('id'),
'query' : xul_param('query'),
- 'doit' : xul_param('doit')
+ 'doit' : xul_param('doit'),
+ 'show' : xul_param('show')
} );
//document.documentElement.style.setProperty('font-size-adjust','1','important');