Added ability to toggle between one big closing ledger entry, and one per house

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@390 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-25 08:08:47 +00:00
parent 7a42bee8ef
commit 36f439ff38

View File

@@ -356,7 +356,16 @@ class Customer extends AppModel {
'conditions' => array('StatementEntry.customer_id' => $id),
));
//pr(compact('stats'));
pr(compact('stats'));
$stat2 =
$this->Transaction->stats(null,
array('conditions' =>
array('Transaction.customer_id' => $id),
));
pr(compact('stat2'));
return $stats[0];
}