Added payments under each receipt in the ledger. This isn't something I really want, just something I was testing. Snapshotting before I delete it, since it did work correctly

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@56 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-01 06:25:59 +00:00
parent 5f715cc076
commit b8c4257f95
3 changed files with 14 additions and 2 deletions

View File

@@ -97,11 +97,22 @@ foreach($unit['Lease'] AS $lease) {
$running_total += $amount;
$rows[] = array(' -- ' . datefmt($receipt['stamp']),
'#'.$receipt['id'],
'Payment/Receipt',
'Receipt',
$receipt['comment'],
currency($amount),
currency($running_total));
$row_class[] = array('receipt', ($odd % 2) ? 'oddrow' : 'evnrow');
foreach ($receipt['Payment'] AS $payment) {
$amount = -1 * $payment['amount'];
$rows[] = array(' -- ',
'#'.$payment['id'],
'Payment',
$payment['comment'],
currency($amount),
'');
$row_class[] = array('payment', ($odd % 2) ? 'oddrow' : 'evnrow');
}
}
}