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:
abijah
2009-07-15 05:42:10 +00:00
parent c4942b922b
commit 33ba912a7e
2 changed files with 71 additions and 32 deletions

View File

@@ -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);
}