From a898371a6c547b35612578f063b614f5cd0709e5 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Tue, 9 Aug 2011 17:19:49 -0400 Subject: [PATCH] Branchify patch from Steven Chan on LP bug #821640. Signed-off-by: Jason Stephenson Signed-off-by: Thomas Berezansky --- Open-ILS/xul/staff_client/server/patron/bill2.js | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Open-ILS/xul/staff_client/server/patron/bill2.js b/Open-ILS/xul/staff_client/server/patron/bill2.js index 76eb5af6cf..a234f3fe67 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill2.js +++ b/Open-ILS/xul/staff_client/server/patron/bill2.js @@ -720,12 +720,16 @@ function print_bills() { var template = 'bills_historical'; if (xul_param('current')) template = 'bills_current'; JSAN.use('patron.util'); g.patron = patron.util.retrieve_fleshed_au_via_id(ses(),g.patron_id,null); - var params = { - 'patron' : g.patron, - 'printer_context' : 'receipt', - 'template' : template - }; - g.bill_list.print(params); + g.bill_list.print({ + 'patron' : g.patron + , 'printer_context' : 'receipt' + , 'template' : template + , 'data' : { + grand_total_owed: $('tb_total_owed').value + , grand_total_billed: $('total_billed').value + , grand_total_paid: $('tb_total_paid').value + } + }); } catch(E) { g.error.standard_unexpected_error_alert($("patronStrings").getString('staff.patron.bill_history.print_bills.print_error'), E); } -- 2.11.0