Removed the Balance column from vacant and unavailable grids, since they should always be zero.

git-svn-id: file:///svn-source/pmgr/branches/pre_0.1_work_20090819@792 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-26 20:16:11 +00:00
parent 387e08da06
commit 0b773cfc35

View File

@@ -13,6 +13,9 @@ $cols['Status'] = array('index' => 'Unit.status', 'formatter' => 'name'); //
$cols['Balance'] = array('index' => 'balance', 'formatter' => 'currency');
$cols['Comment'] = array('index' => 'Unit.comment', 'formatter' => 'comment');
if (in_array($this->params['action'], array('vacant', 'unavailable')))
$grid->invalidFields('Balance');
// Render the grid
$grid
->columns($cols)