Stripped security deposits out of the Receipt page (and bad debt too). Added a dedicated security deposit utilization page. Works, I think, but my eyes are closing and it really needs fresh eyes again in the morning.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@293 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-10 09:28:29 +00:00
parent bcbe3767e3
commit 99904f22bb
5 changed files with 68 additions and 45 deletions

View File

@@ -248,8 +248,8 @@ function addPaymentSource(flash) {
$div .= ' ID="payment-creditcard-cvv2-%{id}" />';
$div .= '</DIV>';
}
elseif ($name == 'Security Deposit') {
$div .= '<DIV CLASS="security-deposit-info"></DIV>';
else {
continue;
}
$div .= '</DIV>';
@@ -291,19 +291,6 @@ function updateCharges(id) {
$('entry',xml).each(function(i){
ids.push($(this).attr('id'));
});
var html = '';
$('deposit',xml).each(function(i){
html += '<TR><TD>Lease #' + $(this).attr('lease_id') + ' Deposit:</TD><TD>' +
fmtCurrency($(this).attr('balance')) + '</TD></TR>';
});
var html = '<UL>';
$('deposit',xml).each(function(i){
html += '<LI>Lease #' + $(this).attr('lease_id') + ': ' +
fmtCurrency($(this).attr('balance')) + '</LI>';
});
html += '</UL>';
$('.security-deposit-info').html(html);
$('#receipt-balance').html(fmtCurrency($('entries',xml).attr('balance')));
$("#receipt-charges-caption").html("Outstanding Charges");
updateChargesGrid(ids);