Updated to include total leases / past leases
git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@996 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -6,7 +6,9 @@ $cols['Relationship'] = array('index' => 'ContactsCustomer.type', 'formatt
|
||||
$cols['Name'] = array('index' => 'Customer.name', 'formatter' => 'longname');
|
||||
$cols['Last Name'] = array('index' => 'PrimaryContact.last_name', 'formatter' => 'name');
|
||||
$cols['First Name'] = array('index' => 'PrimaryContact.first_name', 'formatter' => 'name');
|
||||
$cols['Leases'] = array('index' => 'current_lease_count', 'formatter' => 'number');
|
||||
$cols['Units'] = array('index' => 'current_lease_count', 'formatter' => 'number');
|
||||
$cols['Past Leases'] = array('index' => 'past_lease_count', 'formatter' => 'number');
|
||||
$cols['Leases'] = array('index' => 'lease_count', 'formatter' => 'number');
|
||||
$cols['Balance'] = array('index' => 'balance', 'formatter' => 'currency');
|
||||
$cols['Comment'] = array('index' => 'Customer.comment', 'formatter' => 'comment');
|
||||
|
||||
@@ -17,4 +19,4 @@ $grid
|
||||
->defaultFields(array('Name'))
|
||||
->searchFields(array('Name', 'Last Name', 'First Name'))
|
||||
->render($this, isset($config) ? $config : null,
|
||||
array_diff(array_keys($cols), array('Relationship', 'Comment')));
|
||||
array_diff(array_keys($cols), array('Relationship', 'Past Leases', 'Comment')));
|
||||
|
||||
Reference in New Issue
Block a user