[open-ils-commits] r17379 - in trunk/Open-ILS/xul/staff_client/server: circ patron (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Aug 30 11:36:27 EDT 2010
Author: phasefx
Date: 2010-08-30 11:36:24 -0400 (Mon, 30 Aug 2010)
New Revision: 17379
Modified:
trunk/Open-ILS/xul/staff_client/server/circ/checkin.js
trunk/Open-ILS/xul/staff_client/server/circ/checkout.js
trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
trunk/Open-ILS/xul/staff_client/server/patron/bills.js
trunk/Open-ILS/xul/staff_client/server/patron/items.js
Log:
receipt printer context
Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkin.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkin.js 2010-08-30 15:36:23 UTC (rev 17378)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkin.js 2010-08-30 15:36:24 UTC (rev 17379)
@@ -314,6 +314,7 @@
['command'],
function() {
var p = {
+ 'printer_context' : 'receipt',
'template' : 'checkin'
};
obj.list.print(p);
Modified: trunk/Open-ILS/xul/staff_client/server/circ/checkout.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/circ/checkout.js 2010-08-30 15:36:23 UTC (rev 17378)
+++ trunk/Open-ILS/xul/staff_client/server/circ/checkout.js 2010-08-30 15:36:24 UTC (rev 17379)
@@ -307,6 +307,7 @@
'data' : {
'balance_owed' : util.money.sanitize( obj.most_recent_balance_owed ),
},
+ 'printer_context' : 'receipt',
'template' : 'checkout',
'callback' : function() {
setTimeout(
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bill2.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bill2.js 2010-08-30 15:36:23 UTC (rev 17378)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bill2.js 2010-08-30 15:36:24 UTC (rev 17379)
@@ -649,6 +649,7 @@
JSAN.use('patron.util');
var params = {
'patron' : patron.util.retrieve_au_via_id(ses(),g.patron_id),
+ 'printer_context' : 'receipt',
'template' : template
};
g.bill_list.print(params);
@@ -782,7 +783,7 @@
};
g.error.sdump('D_DEBUG',js2JSON(params));
if (! $('printer_prompt').hasAttribute('checked')) params.no_prompt = true;
- JSAN.use('util.print'); var print = new util.print();
+ JSAN.use('util.print'); var print = new util.print('receipt');
print.tree_list( params );
} catch(E) {
g.error.standard_unexpected_error_alert('bill receipt', E);
Modified: trunk/Open-ILS/xul/staff_client/server/patron/bills.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/bills.js 2010-08-30 15:36:23 UTC (rev 17378)
+++ trunk/Open-ILS/xul/staff_client/server/patron/bills.js 2010-08-30 15:36:24 UTC (rev 17379)
@@ -540,7 +540,7 @@
};
obj.error.sdump('D_DEBUG',js2JSON(params));
if (document.getElementById('auto_print').checked) params.no_prompt = true;
- JSAN.use('util.print'); var print = new util.print();
+ JSAN.use('util.print'); var print = new util.print('receipt');
print.tree_list( params );
} catch(E) {
obj.error.standard_unexpected_error_alert('bill receipt', E);
@@ -707,7 +707,7 @@
}
)
};
- JSAN.use('util.print'); var print = new util.print();
+ JSAN.use('util.print'); var print = new util.print('receipt');
print.tree_list( params );
} catch(E) {
Modified: trunk/Open-ILS/xul/staff_client/server/patron/items.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/patron/items.js 2010-08-30 15:36:23 UTC (rev 17378)
+++ trunk/Open-ILS/xul/staff_client/server/patron/items.js 2010-08-30 15:36:24 UTC (rev 17379)
@@ -256,6 +256,7 @@
JSAN.use('patron.util');
var params = {
'patron' : patron.util.retrieve_fleshed_au_via_id(ses(),obj.patron_id),
+ 'printer_context' : 'receipt',
'template' : 'items_out'
};
list.print( params );
More information about the open-ils-commits
mailing list