2009-01-13 05:13:18 +00:00
|
|
|
<?php
|
|
|
|
|
class Quote extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'Quote';
|
2010-06-24 01:11:29 +00:00
|
|
|
/*var $validate = array(
|
2009-01-13 05:13:18 +00:00
|
|
|
'enquiry_id' => array('numeric'),
|
|
|
|
|
'revision' => array('alphanumeric'),
|
|
|
|
|
'deliverytime' => array('alphanumeric'),
|
|
|
|
|
'paymentterms' => array('alphanumeric'),
|
|
|
|
|
'daysvalid' => array('numeric')
|
|
|
|
|
|
2010-06-24 01:11:29 +00:00
|
|
|
);*/
|
2009-01-13 05:13:18 +00:00
|
|
|
|
|
|
|
|
//The Associations below have been created with all possible keys, those that are not needed can be removed
|
|
|
|
|
var $belongsTo = array(
|
|
|
|
|
'Enquiry' => array('className' => 'Enquiry',
|
|
|
|
|
'foreignKey' => 'enquiry_id',
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
2011-05-24 09:11:07 +00:00
|
|
|
'order' => '',
|
|
|
|
|
'counterCache'=>true
|
2009-11-18 23:23:21 +00:00
|
|
|
),
|
|
|
|
|
|
2010-07-08 06:18:04 +00:00
|
|
|
'Currency' => array('className' => 'Currency', 'foreignKey' => 'currency_id'),
|
|
|
|
|
|
|
|
|
|
'Document' => array('className'=>'Document', 'foreignKey'=>'document_id')
|
2009-01-13 05:13:18 +00:00
|
|
|
);
|
|
|
|
|
|
2010-06-24 01:11:29 +00:00
|
|
|
|
2009-01-13 05:13:18 +00:00
|
|
|
}
|
2009-10-10 07:06:46 +00:00
|
|
|
?>
|