Moved all grid elements onto the grid helper. Basic testing done, but more testing needs to be done.

git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@262 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-08 20:40:44 +00:00
parent 311d8be646
commit aca9d13a7d
22 changed files with 327 additions and 321 deletions

View File

@@ -71,15 +71,22 @@ echo $this->element('leases', array
/**********************************************************************
* Current Customer Lease Account History
*/
if (isset($current_lease['id'])) {
echo $this->element('ledger_entries',
array('caption' =>
('Current Lease Account ('
. $current_lease['Customer']['name']
. ')'),
'ar_account' => true,
'lease_id' => $current_lease['id'],
));
echo $this->element('ledger_entries', array
(// Element configuration
'ar_account' => true,
'lease_id' => $current_lease['id'],
// Grid configuration
'config' => array
(
'caption' =>
('Current Lease Account ('
. $current_lease['Customer']['name']
. ')'),
),
));
}