Shouldn't check this garbage in, but I can't bring my self to revert it
git-svn-id: file:///svn-source/pmgr/branches/invoice_receipt_20090629@287 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -120,6 +120,15 @@ class LeasesController extends AppController {
|
||||
return $order;
|
||||
}
|
||||
|
||||
/* function jqGridRecordsPostProcess(&$params, &$model, &$records) { */
|
||||
/* foreach ($records AS &$record) { */
|
||||
/* $record['Lease']['through_date'] */
|
||||
/* = $this->Lease->rentChargeThrough($record['Lease']['id']); */
|
||||
/* } */
|
||||
|
||||
/* parent::jqGridRecordsPostProcess($params, $model, $records); */
|
||||
/* } */
|
||||
|
||||
function jqGridRecordLinks(&$params, &$model, &$records, $links) {
|
||||
$links['Lease'] = array('number');
|
||||
$links['Unit'] = array('name');
|
||||
|
||||
@@ -224,6 +224,32 @@ class Lease extends AppModel {
|
||||
}
|
||||
|
||||
|
||||
/* /\************************************************************************** */
|
||||
/* ************************************************************************** */
|
||||
/* ************************************************************************** */
|
||||
/* * function: rentPaidThrough */
|
||||
/* * - Determines the date that rent has been paid through */
|
||||
/* * Returns one of: */
|
||||
/* * null: There are gaps in the charges */
|
||||
/* * false: There are not yet any charges */
|
||||
/* * date: The date rent has been paid through */
|
||||
/* *\/ */
|
||||
|
||||
/* function rentPaidThrough($id) { */
|
||||
/* if ($this->rentChargeGaps($id)) */
|
||||
/* return null; */
|
||||
|
||||
/* $A = new Account(); */
|
||||
/* $unrec_entries = $A->findUnreconciledLedgerEntries */
|
||||
/* ($A->rentAccountID(), 'INCOME', array('LedgerEntry.lease_id' => $id)); */
|
||||
|
||||
/* $unrec_ids */
|
||||
/* = array_map(create_function('$data', */
|
||||
/* 'return $data["id"];'), */
|
||||
/* $unrec_entries); */
|
||||
/* } */
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
**************************************************************************
|
||||
**************************************************************************
|
||||
|
||||
Reference in New Issue
Block a user