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:
abijah
2009-07-09 07:50:44 +00:00
parent 372578f171
commit 112aa7cf59
2 changed files with 35 additions and 0 deletions

View File

@@ -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');

View File

@@ -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); */
/* } */
/**************************************************************************
**************************************************************************
**************************************************************************