Added ability to get a customer's running balance. It's quite flaky, doesn't tolerate having a grid with sub-pages, is actually incorrect for at least some customers (not sure why), but it helps answer a fundamental question for most customers. If I had a better solution, I would surely go for it.
git-svn-id: file:///svn-source/pmgr/branches/v0.3_work@1036 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -93,7 +93,8 @@ class TransactionsController extends AppController {
|
||||
$fields[] = ("IF(Transaction.type = 'DEPOSIT'," .
|
||||
" COUNT(DepositTender.id)," .
|
||||
" COUNT(StatementEntry.id)) AS entries");
|
||||
return $fields;
|
||||
return array_merge($fields,
|
||||
$this->Transaction->LedgerEntry->debitCreditFields(false, true, 'Transaction'));
|
||||
}
|
||||
|
||||
function gridDataConditions(&$params, &$model) {
|
||||
|
||||
Reference in New Issue
Block a user