checkout receipt in the template editor
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Jul 2005 14:01:19 +0000 (14:01 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 25 Jul 2005 14:01:19 +0000 (14:01 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1416 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/circ/receipt_template_editor.xul
Evergreen/staff_client/chrome/content/evergreen/util/print.js

index 8a58ca6..a7bbe86 100644 (file)
@@ -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) {
index 265f9c1..3afc4ab 100644 (file)
@@ -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;