git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@71 97e9348a-65ac-dc4b-aefc-98561f571b83
58 lines
1.4 KiB
PHP
58 lines
1.4 KiB
PHP
<?php
|
|
class Lease extends AppModel {
|
|
|
|
var $name = 'Lease';
|
|
var $validate = array(
|
|
'id' => array('numeric'),
|
|
'number' => array('alphanumeric'),
|
|
'lease_type_id' => array('numeric'),
|
|
'unit_id' => array('numeric'),
|
|
'late_schedule_id' => array('numeric'),
|
|
'lease_date' => array('date'),
|
|
'movein_planed_date' => array('date'),
|
|
'movein_date' => array('date'),
|
|
'moveout_date' => array('date'),
|
|
'moveout_planed_date' => array('date'),
|
|
'notice_given_date' => array('date'),
|
|
'notice_received_date' => array('date'),
|
|
'close_date' => array('date'),
|
|
'deposit' => array('money'),
|
|
'amount' => array('money'),
|
|
'next_amount' => array('money'),
|
|
'next_amount_date' => array('date')
|
|
);
|
|
|
|
var $belongsTo = array(
|
|
'LeaseType' => array(
|
|
'className' => 'LeaseType',
|
|
'foreignKey' => 'lease_type_id',
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => ''
|
|
),
|
|
'Unit' => array(
|
|
'className' => 'Unit',
|
|
'foreignKey' => 'unit_id',
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => ''
|
|
),
|
|
'LateSchedule' => array(
|
|
'className' => 'LateSchedule',
|
|
'foreignKey' => 'late_schedule_id',
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => ''
|
|
),
|
|
'Customer' => array(
|
|
'className' => 'Customer',
|
|
'foreignKey' => 'customer_id',
|
|
'dependent' => false,
|
|
'conditions' => '',
|
|
'fields' => '',
|
|
'order' => ''
|
|
),
|
|
);
|
|
|
|
}
|
|
?>
|