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:
@@ -57,17 +57,20 @@ echo $this->element('table',
|
||||
* Receipts
|
||||
*/
|
||||
|
||||
$headers = array('ID', 'Timestamp', 'Comment', 'Applied');
|
||||
$headers = array('ID', 'Timestamp', 'Comment', 'Applied', 'Balance');
|
||||
$rows = array();
|
||||
$running_total = 0;
|
||||
$running_total = $charge['Charge']['total'];
|
||||
foreach($charge['Receipt'] AS $receipt) {
|
||||
$amount = $receipt['ChargesReceipt']['amount'];
|
||||
$running_total += $amount;
|
||||
$rows[] = array('#'.$receipt['id'],
|
||||
$running_total -= $amount;
|
||||
$rows[] = array($html->link('#'.$receipt['id'],
|
||||
array('controller' => 'receipts',
|
||||
'action' => 'view',
|
||||
$receipt['id'])),
|
||||
datefmt($receipt['stamp']),
|
||||
$receipt['comment'],
|
||||
currency($receipt['ChargesReceipt']['amount']),
|
||||
//currency($running_total)
|
||||
currency($running_total)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user