Modified the statement entries grid, as well as the underlying controller, to support a couple new fields, 'applied' and 'balance'.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@532 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-11 07:27:56 +00:00
parent 96c499786c
commit f82df229f2
4 changed files with 24 additions and 41 deletions

View File

@@ -21,7 +21,9 @@ $cols['Type'] = array('index' => 'StatementEntry.type', 'formatter' =>
$cols['Debit'] = array('index' => 'charge', 'formatter' => 'currency');
$cols['Credit'] = array('index' => 'disbursement', 'formatter' => 'currency');
$cols['Amount'] = array('index' => "StatementEntry.amount", 'formatter' => 'currency');
$cols['Applied'] = array('index' => "applied", 'formatter' => 'currency');
$cols['Balance'] = array('index' => "balance", 'formatter' => 'currency');
$cols['Sub-Total'] = array('index' => 'subtotal-balance', 'formatter' => 'currency', 'sortable' => false);
@@ -40,6 +42,6 @@ $grid
->searchFields(array('Customer', 'Unit'))
->render($this, isset($config) ? $config : null,
array_diff(array_keys($cols), array('Through', 'Lease',
'Applied', 'Sub-Total',
'Amount', 'Applied', 'Balance', 'Sub-Total',
'Comment')));