From 614726cea794c75f95f2887bbb2e84c2394c330b Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 30 Aug 2010 15:36:24 +0000 Subject: [PATCH] receipt printer context git-svn-id: svn://svn.open-ils.org/ILS/trunk@17379 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/circ/checkin.js | 1 + Open-ILS/xul/staff_client/server/circ/checkout.js | 1 + Open-ILS/xul/staff_client/server/patron/bill2.js | 3 ++- Open-ILS/xul/staff_client/server/patron/bills.js | 4 ++-- Open-ILS/xul/staff_client/server/patron/items.js | 1 + 5 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/circ/checkin.js b/Open-ILS/xul/staff_client/server/circ/checkin.js index 80441ec79..72d11632d 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkin.js +++ b/Open-ILS/xul/staff_client/server/circ/checkin.js @@ -314,6 +314,7 @@ circ.checkin.prototype = { ['command'], function() { var p = { + 'printer_context' : 'receipt', 'template' : 'checkin' }; obj.list.print(p); diff --git a/Open-ILS/xul/staff_client/server/circ/checkout.js b/Open-ILS/xul/staff_client/server/circ/checkout.js index d2706eff9..88412fd96 100644 --- a/Open-ILS/xul/staff_client/server/circ/checkout.js +++ b/Open-ILS/xul/staff_client/server/circ/checkout.js @@ -307,6 +307,7 @@ circ.checkout.prototype = { 'data' : { 'balance_owed' : util.money.sanitize( obj.most_recent_balance_owed ), }, + 'printer_context' : 'receipt', 'template' : 'checkout', 'callback' : function() { setTimeout( diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 1206275a1..059267b50 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -649,6 +649,7 @@ function print_bills() { 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 @@ function apply_payment() { }; 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); diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index 7f72ea0ab..82c3b8b60 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -540,7 +540,7 @@ patron.bills.prototype = { }; 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 @@ patron.bills.prototype = { } ) }; - 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) { diff --git a/Open-ILS/xul/staff_client/server/patron/items.js b/Open-ILS/xul/staff_client/server/patron/items.js index 50eeb7b9e..0a448423c 100644 --- a/Open-ILS/xul/staff_client/server/patron/items.js +++ b/Open-ILS/xul/staff_client/server/patron/items.js @@ -256,6 +256,7 @@ patron.items.prototype = { 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 ); -- 2.11.0