From 628726a8895044f494dbde81100a89748e650793 Mon Sep 17 00:00:00 2001 From: phasefx Date: Mon, 25 Jul 2005 14:01:19 +0000 Subject: [PATCH] checkout receipt in the template editor git-svn-id: svn://svn.open-ils.org/ILS/trunk@1416 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../chrome/content/evergreen/circ/receipt_template_editor.xul | 1 + Evergreen/staff_client/chrome/content/evergreen/util/print.js | 1 + 2 files changed, 2 insertions(+) diff --git a/Evergreen/staff_client/chrome/content/evergreen/circ/receipt_template_editor.xul b/Evergreen/staff_client/chrome/content/evergreen/circ/receipt_template_editor.xul index 8a58ca6075..a7bbe866c9 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/circ/receipt_template_editor.xul +++ b/Evergreen/staff_client/chrome/content/evergreen/circ/receipt_template_editor.xul @@ -30,6 +30,7 @@ document.getElementById('holds_line_item_tb').value = mw.G.holds_line_item; document.getElementById('holds_footer_tb').value = mw.G.holds_footer; test_itemsout(document.getElementById('sample_view')); + test_patron._current_checkouts = test_patron.checkouts(); } function test_itemsout(sample_view) { diff --git a/Evergreen/staff_client/chrome/content/evergreen/util/print.js b/Evergreen/staff_client/chrome/content/evergreen/util/print.js index 265f9c1939..3afc4abc15 100644 --- a/Evergreen/staff_client/chrome/content/evergreen/util/print.js +++ b/Evergreen/staff_client/chrome/content/evergreen/util/print.js @@ -20,6 +20,7 @@ function print_circ_receipt(circ_type,params,sample_view) { switch(circ_type) { case 'itemsout' : circs = params.au.checkouts(); break; case 'checkout' : circs = params.au._current_checkouts; break; + default: alert('bad!'); break; } for (var i = 0; i < circs.length; i++) { params.current_circ = circs[i].circ; -- 2.11.0