receipt printer context
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 15:36:24 +0000 (15:36 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 30 Aug 2010 15:36:24 +0000 (15:36 +0000)
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
Open-ILS/xul/staff_client/server/circ/checkout.js
Open-ILS/xul/staff_client/server/patron/bill2.js
Open-ILS/xul/staff_client/server/patron/bills.js
Open-ILS/xul/staff_client/server/patron/items.js

index 80441ec..72d1163 100644 (file)
@@ -314,6 +314,7 @@ circ.checkin.prototype = {
                         ['command'],
                         function() {
                             var p = { 
+                                'printer_context' : 'receipt',
                                 'template' : 'checkin'
                             };
                             obj.list.print(p);
index d2706ef..88412fd 100644 (file)
@@ -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(
index 1206275..059267b 100644 (file)
@@ -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);
index 7f72ea0..82c3b8b 100644 (file)
@@ -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) {
index 50eeb7b..0a44842 100644 (file)
@@ -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 );