From 594bf3e27d97ff2c18bb76c140e25235f979da37 Mon Sep 17 00:00:00 2001 From: pines Date: Fri, 18 Aug 2006 13:45:03 +0000 Subject: [PATCH] get refresh working again from bill_history so void total will be updated. tweak receipt git-svn-id: svn://svn.open-ils.org/ILS/trunk@5585 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js | 2 +- Open-ILS/xul/staff_client/server/patron/bill_history.xul | 7 +++++++ Open-ILS/xul/staff_client/server/patron/bills.js | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js index 9d91b92b3c..8b13e92061 100644 --- a/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js +++ b/Open-ILS/xul/staff_client/chrome/content/OpenILS/data.js @@ -167,7 +167,7 @@ OpenILS.data.prototype = { }, 'bill_payment' : { 'type' : 'payment', - 'header' : 'Welcome to %LIBRARY%!
A receipt of your transaction:
Original Balance: $%original_balance%
Payment Method: %payment_type%
Payment Received: $%payment_received%
Payment Applied: $%payment_applied%
Billings Voided: $%voided_balance%
Change Given: $%change_given%
New Balance: $%new_balance%

Note: %note%

Specific bills:

', + 'header' : 'Welcome to %LIBRARY%!
A receipt of your transaction:
Original Balance: $%original_balance%
Payment Method: %payment_type%
Payment Received: $%payment_received%
Payment Applied: $%payment_applied%
Billings Voided: %voided_balance%
Change Given: $%change_given%
New Balance: $%new_balance%

Note: %note%

Specific bills:

', 'line_item' : 'Bill #%bill_id% Received: $%payment%
', 'footer' : '


%PINES_CODE% %TODAY_TRIM%

', }, 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 1f5fb0b546..86ff8849c8 100644 --- a/Open-ILS/xul/staff_client/server/patron/bill_history.xul +++ b/Open-ILS/xul/staff_client/server/patron/bill_history.xul @@ -268,6 +268,7 @@ retrieve_mbts_for_list(); //g.data.temp = 'refresh'; g.data.stash('temp'); if (typeof window.refresh == 'function') window.refresh(); + if (typeof window.xulG == 'object' && typeof window.xulG.refresh == 'function') window.xulG.refresh(); } } @@ -280,6 +281,12 @@ 'test_billdetails', 'modal,chrome,resizable' ); + //g.data.temp = 'refresh'; g.data.stash('temp'); + g.data.stash_retrieve(); + if (g.data.temp == 'refresh') { + if (typeof window.refresh == 'function') window.refresh(); + if (typeof window.xulG == 'object' && typeof window.xulG.refresh == 'function') window.xulG.refresh(); + } } function print_bills() { diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index 2f29f58780..51725d3df9 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -179,6 +179,7 @@ patron.bills.prototype = { //'chrome,resizable,modal' 'chrome,resizable' ); + w.xulG = { 'refresh' : function() { obj.refresh(); } }; //obj.OpenILS.data.init({'via':'stash'}); if (obj.OpenILS.data.temp == 'refresh') { obj.refresh(); } w.refresh = function() { obj.refresh(); }; } catch(E) { @@ -200,6 +201,7 @@ patron.bills.prototype = { //'chrome,resizable,modal' 'chrome,resizable' ); + w.xulG = { 'refresh' : function() { obj.refresh(); } }; //obj.OpenILS.data.init({'via':'stash'}); if (obj.OpenILS.data.temp == 'refresh') { obj.refresh(); } w.refresh = function() { obj.refresh(); }; } catch(E) { -- 2.43.2