Fixed the balance summary of the collected report, and marked off NSF and collected report requirements.
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629/site@335 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -325,12 +325,16 @@ class LedgerEntriesController extends AppController {
|
||||
return $order;
|
||||
}
|
||||
|
||||
function jqGridDataOutputRecordCell(&$params, &$model, &$record, $field, $data) {
|
||||
/* if ($field === 'CreditAccount.name') { */
|
||||
/* $data .= '-OK'; */
|
||||
/* } */
|
||||
function jqGridDataOutputRecords(&$params, &$model, &$records) {
|
||||
|
||||
parent::jqGridDataOutputRecordCell($params, $model, $record, $field, $data);
|
||||
if ($params['action'] === 'collected') {
|
||||
$total = 0;
|
||||
foreach ($records AS &$record)
|
||||
$total += $record['LedgerEntry']['applied'];
|
||||
echo ' <userdata name="total">' . $total . '</userdata>' . "\n";
|
||||
}
|
||||
|
||||
parent::jqGridDataOutputRecords($params, $model, $records);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user