Added stats summary to the top level for lease. For consistency, I want all stats to be summarized at the top.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@175 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -150,6 +150,11 @@ class Lease extends AppModel {
|
||||
|
||||
// Pull the stats from the account.
|
||||
$stats['Account'] = $this->Account->stats($lease['Lease']['account_id']);
|
||||
|
||||
// Place a summary of the stats (one lease account in this case)
|
||||
// at the top level for easy summarized access.
|
||||
$this->statsMerge($stats, $stats['Account']['Ledger']);
|
||||
|
||||
return $stats;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user