Added links everywhere for charge/payment/receipt. Also, minor tweaking to the views in a couple places.
git-svn-id: file:///svn-source/pmgr/branches/initial_20090526@64 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -50,17 +50,20 @@ echo $this->element('table',
|
||||
* Payments
|
||||
*/
|
||||
|
||||
$headers = array('ID', 'Type', 'Comment', 'Amount', /*'Total'*/);
|
||||
$headers = array('ID', 'Type', 'Comment', 'Amount', 'Total');
|
||||
$rows = array();
|
||||
$running_total = 0;
|
||||
foreach($receipt['Payment'] AS $payment) {
|
||||
$amount = $payment['amount'];
|
||||
$running_total += $amount;
|
||||
$rows[] = array('#'.$payment['id'],
|
||||
$rows[] = array($html->link('#'.$payment['id'],
|
||||
array('controller' => 'payments',
|
||||
'action' => 'view',
|
||||
$payment['id'])),
|
||||
$payment['PaymentType']['name'],
|
||||
$payment['comment'],
|
||||
currency($payment['amount']),
|
||||
//currency($running_total)
|
||||
currency($running_total)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -76,14 +79,17 @@ echo $this->element('table',
|
||||
* Charges
|
||||
*/
|
||||
|
||||
$headers = array('Date', 'ID', /*'Due',*/ 'Type', 'Lease', 'Comment', 'Amount' /*, 'Tax', 'Subtotal'*/, 'Applied', /*'Total'*/);
|
||||
$headers = array('ID', 'Date', /*'Due',*/ 'Type', 'Lease', 'Comment', 'Amount' /*, 'Tax', 'Subtotal'*/, 'Applied', /*'Total'*/);
|
||||
$rows = array();
|
||||
$running_total = 0;
|
||||
foreach($receipt['Charge'] AS $charge) {
|
||||
$amount = $charge['total'];
|
||||
$running_total += $amount;
|
||||
$rows[] = array(datefmt($charge['charge_date']) .' - '. datefmt($charge['charge_to_date']),
|
||||
'#'.$charge['id'],
|
||||
$rows[] = array($html->link('#'.$charge['id'],
|
||||
array('controller' => 'charges',
|
||||
'action' => 'view',
|
||||
$charge['id'])),
|
||||
datefmt($charge['charge_date']) .' - '. datefmt($charge['charge_to_date']),
|
||||
//datefmt($charge['due_date']),
|
||||
$charge['ChargeType']['name'],
|
||||
'#'.$charge['Lease']['number'],
|
||||
|
||||
Reference in New Issue
Block a user