From: Kyle Huckins Date: Mon, 25 Apr 2016 16:25:24 +0000 (-0700) Subject: CAT-58 Bill Interface Print Additions X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=f196f87eaab59176c17e40207f6b9d078e41b988;p=working%2FEvergreen.git CAT-58 Bill Interface Print Additions Add locale settings for Printing selected item. Add context menu to Bill/Payment History interface. Add Print Selected Item to Bill/Payment History Context menu. Change Payment History Interface Print button to print all items in list. Signed-off-by: Kyle Huckins modified: Open-ILS/web/opac/locale/en-US/lang.dtd modified: Open-ILS/xul/staff_client/server/patron/bill2.xul modified: Open-ILS/xul/staff_client/server/patron/bill_history.js modified: Open-ILS/xul/staff_client/server/patron/bill_history.xul --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index db947c1066..eb6184961e 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -3327,7 +3327,7 @@ - + diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.xul b/Open-ILS/xul/staff_client/server/patron/bill2.xul index 05c4271c63..fb740417bd 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill2.xul @@ -45,7 +45,7 @@ - + diff --git a/Open-ILS/xul/staff_client/server/patron/bill_history.js b/Open-ILS/xul/staff_client/server/patron/bill_history.js index 6b52edbb3b..2a2604ac91 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_history.js +++ b/Open-ILS/xul/staff_client/server/patron/bill_history.js @@ -379,11 +379,13 @@ function gen_handle_copy_details(which_list) { }; } -function print_bills() { +function print_bills(selected) { try { + if(selected == true) var list = g.bill_list.dump_selected_with_keys(0); var template = 'bills_historical'; JSAN.use('patron.util'); var params = { + 'list' : list, 'patron' : patron.util.retrieve_fleshed_au_via_id(ses(),g.patron_id,null), 'template' : template }; @@ -393,11 +395,11 @@ function print_bills() { } } -function print_bills_from_history() { +function print_bills_from_history(selected) { try { - + if(selected == true) var list = g.payments_list.dump_selected_with_keys(0); var params = { - 'list': g.payments_list.dump_selected_with_keys(0), + 'list': list, 'patron' : patron.util.retrieve_fleshed_au_via_id(ses(), g.patron_id), 'printer_context' : 'receipt', 'template' : 'bill_payment_basic' diff --git a/Open-ILS/xul/staff_client/server/patron/bill_history.xul b/Open-ILS/xul/staff_client/server/patron/bill_history.xul index aac5b35c88..4a505b9eba 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_history.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_history.xul @@ -83,12 +83,12 @@ - +