2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
|
|
|
|
class Quote extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'Quote';
|
2010-06-23 18:11:29 -07:00
|
|
|
/*var $validate = array(
|
2009-01-12 21:13:18 -08:00
|
|
|
'enquiry_id' => array('numeric'),
|
|
|
|
|
'revision' => array('alphanumeric'),
|
|
|
|
|
'deliverytime' => array('alphanumeric'),
|
|
|
|
|
'paymentterms' => array('alphanumeric'),
|
|
|
|
|
'daysvalid' => array('numeric')
|
|
|
|
|
|
2010-06-23 18:11:29 -07:00
|
|
|
);*/
|
2009-01-12 21:13:18 -08: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 02:11:07 -07:00
|
|
|
'order' => '',
|
|
|
|
|
'counterCache'=>true
|
2009-11-18 15:23:21 -08:00
|
|
|
),
|
|
|
|
|
|
2010-07-07 23:18:04 -07:00
|
|
|
'Currency' => array('className' => 'Currency', 'foreignKey' => 'currency_id'),
|
|
|
|
|
|
|
|
|
|
'Document' => array('className'=>'Document', 'foreignKey'=>'document_id')
|
2009-01-12 21:13:18 -08:00
|
|
|
);
|
|
|
|
|
|
2010-06-23 18:11:29 -07:00
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
}
|
2009-10-10 00:06:46 -07:00
|
|
|
?>
|