Rolled back the last changes, which were checked in for documentation only.
git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@57 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -172,7 +172,6 @@ class UnitsController extends AppController {
|
|||||||
// Models
|
// Models
|
||||||
'ChargeType',
|
'ChargeType',
|
||||||
'Receipt'
|
'Receipt'
|
||||||
=> array('Payment'),
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -97,22 +97,11 @@ foreach($unit['Lease'] AS $lease) {
|
|||||||
$running_total += $amount;
|
$running_total += $amount;
|
||||||
$rows[] = array(' -- ' . datefmt($receipt['stamp']),
|
$rows[] = array(' -- ' . datefmt($receipt['stamp']),
|
||||||
'#'.$receipt['id'],
|
'#'.$receipt['id'],
|
||||||
'Receipt',
|
'Payment Applied',
|
||||||
$receipt['comment'],
|
$receipt['comment'],
|
||||||
currency($amount),
|
currency($amount),
|
||||||
currency($running_total));
|
currency($running_total));
|
||||||
$row_class[] = array('receipt', ($odd % 2) ? 'oddrow' : 'evnrow');
|
$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');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -97,7 +97,6 @@ table.list.lease td.comment { width : 99%; }
|
|||||||
/* Ledger Entries */
|
/* Ledger Entries */
|
||||||
table.list.ledger td { border-top : 1px dashed #ccc; }
|
table.list.ledger td { border-top : 1px dashed #ccc; }
|
||||||
table.list.ledger td.date.receipt { padding-left: 1em; }
|
table.list.ledger td.date.receipt { padding-left: 1em; }
|
||||||
table.list.ledger td.date.payment { padding-left: 2em; }
|
|
||||||
table.list.ledger td.evnrow { background: #f4f4f4; }
|
table.list.ledger td.evnrow { background: #f4f4f4; }
|
||||||
table.list.ledger td.comment { width : 99%; }
|
table.list.ledger td.comment { width : 99%; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user