auto-print for bills
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Aug 2006 14:00:34 +0000 (14:00 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 15 Aug 2006 14:00:34 +0000 (14:00 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@5514 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/bills.js
Open-ILS/xul/staff_client/server/patron/bills_overlay.xul

index a86acd9..c4b87e2 100644 (file)
@@ -474,6 +474,7 @@ patron.bills.prototype = {
                                                        'list' : payment_blob.payments,
                                                        'data' : obj.previous_summary,
                                                };
+                                               if (document.getElementById('auto_print').checked) params.no_prompt = true;
                                                JSAN.use('util.print'); var print = new util.print();
                                                print.tree_list( params );
                                        } catch(E) {
index 84925ac..9019726 100644 (file)
                <button id="bill_wizard" label="Bill Patron" accesskey="B" command="cmd_bill_wizard"/>
                <button id="bill_history" label="History" accesskey="H" command="cmd_bill_history"/>
                <spacer flex="2"/>
+               <checkbox id="auto_print" label="Auto-Print" persist="checked" checked="true" />
                <button class="hide_patron_credit" hidden="true" disabled="true" id="change_to_credit" label="Convert Change to Patron Credit" command="cmd_change_to_credit"/>
                <button id="bill_apply_payment" label="Apply Payment!" accesskey="P" command="cmd_bill_apply_payment"/>
        </hbox>