Primarly a cleanup checkin, although a couple minor bugfixes were included as well.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@82 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -26,14 +26,16 @@ class LedgerEntry extends AppModel {
|
||||
/**************************************************************************
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
* function:
|
||||
* -
|
||||
* function: conditionEntryAsCreditOrDebit
|
||||
* - returns the condition necessary to match a set of
|
||||
* Ledgers to all related LedgerEntries
|
||||
*/
|
||||
function conditionEntryAsCreditOrDebit($ledger_ids) {
|
||||
return array('OR' =>
|
||||
array(array('debit_ledger_id' => $ledger_ids),
|
||||
array('credit_ledger_id' => $ledger_ids)));
|
||||
}
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
**************************************************************************
|
||||
@@ -78,18 +80,6 @@ class LedgerEntry extends AppModel {
|
||||
array('Transaction.stamp'),
|
||||
));
|
||||
|
||||
/* $entries['summary'] = array('balance' => null, 'debit' => null, 'credit' => null); */
|
||||
/* foreach($entries AS $entry) */
|
||||
/* $this->statsMerge($entries['summary'], $entry[0]); */
|
||||
|
||||
/* //if (isset($entries['summary']['debit']) || isset($entries['summary']['credit'])) { */
|
||||
/* $entries['summary']['debits'] = $entries['summary']['debit']; */
|
||||
/* $entries['summary']['credits'] = $entries['summary']['credit']; */
|
||||
/* unset($entries['summary']['debit']); */
|
||||
/* unset($entries['summary']['credit']); */
|
||||
/* //} */
|
||||
|
||||
|
||||
return $entries;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user