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:
@@ -356,7 +356,16 @@ class Customer extends AppModel {
|
|||||||
'conditions' => array('StatementEntry.customer_id' => $id),
|
'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];
|
return $stats[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user