From 14c8a6fcb24c27b27d3b0c392ff449d616cd300a Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 4 Aug 2006 15:33:51 +0000 Subject: [PATCH] unselected balance git-svn-id: svn://svn.open-ils.org/ILS/trunk@5296 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/xul/staff_client/server/patron/bills.js | 8 ++++++++ Open-ILS/xul/staff_client/server/patron/bills_overlay.xul | 5 ++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/server/patron/bills.js b/Open-ILS/xul/staff_client/server/patron/bills.js index 404671921f..4a915e60a1 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills.js +++ b/Open-ILS/xul/staff_client/server/patron/bills.js @@ -250,6 +250,10 @@ patron.bills.prototype = { ['render'], function(e) { return function() {}; } ], + 'unselected_balance' : [ + ['render'], + function(e) { return function() {}; } + ], 'bill_total_owed' : [ ['render'], function(e) { return function() {}; } @@ -378,6 +382,7 @@ patron.bills.prototype = { var obj = this; JSAN.use('util.money'); var selected_total = 0; + var unselected_total = 0; //var s = ''; for (var i = 0; i < obj.current_payments.length; i++) { @@ -387,10 +392,13 @@ patron.bills.prototype = { selected_total += bo; //s += ('tallying ' + i + ' : checked, bo = ' + bo + ' total = ' + selected_total + '\n'); } else { + var bo = util.money.dollars_float_to_cents_integer( bill.balance_owed ); + unselected_total += bo; //s += ('tallying ' + i + ' : not checked, total = ' + selected_total + '\n'); } } obj.controller.view.selected_balance.setAttribute('value', '$' + util.money.cents_as_dollars( selected_total ) ); + obj.controller.view.unselected_balance.setAttribute('value', '$' + util.money.cents_as_dollars( unselected_total ) ); //dump(s); alert(s); }, diff --git a/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul b/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul index d29887b009..90a31530b9 100644 --- a/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul +++ b/Open-ILS/xul/staff_client/server/patron/bills_overlay.xul @@ -11,7 +11,10 @@ - + +