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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user