Moved paid-through from the detail box, which is semi-static information, to the info box, which holds data that changes with time (i.e. the so called pertinent information).

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@549 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-13 22:09:27 +00:00
parent 8f6dd40b9a
commit f1d852aea6
3 changed files with 16 additions and 4 deletions

View File

@@ -453,13 +453,16 @@ class LeasesController extends AppController {
('first',
array('contain' =>
array(// Models
'LeaseType',
'Unit',
'Customer',
'LeaseType(id,name)',
'Unit(id,name)',
'Customer(id,name)',
),
'fields' => array('Lease.*', $this->Lease->delinquentField()),
'conditions' => array(array('Lease.id' => $id)),
)
);
$lease['Lease'] += $lease[0];
unset($lease[0]);
// Figure out the outstanding balances for this lease
$outstanding_balance = $this->Lease->balance($id);