From 36f439ff384927456e24c88253e51e325c8d7ec0 Mon Sep 17 00:00:00 2001 From: abijah Date: Sat, 25 Jul 2009 08:08:47 +0000 Subject: [PATCH] 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 --- models/customer.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/models/customer.php b/models/customer.php index 194ea4d..d3458de 100644 --- a/models/customer.php +++ b/models/customer.php @@ -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]; }