33 lines
929 B
PHP
Executable file
33 lines
929 B
PHP
Executable file
<?php
|
|
class OrderAcknowledgement extends AppModel {
|
|
|
|
var $name = 'OrderAcknowledgement';
|
|
/*var $validate = array(
|
|
'enquiry_id' => array('numeric'),
|
|
'revision' => array('alphanumeric'),
|
|
'deliverytime' => array('alphanumeric'),
|
|
'paymentterms' => array('alphanumeric'),
|
|
'daysvalid' => array('numeric')
|
|
|
|
);*/
|
|
|
|
//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' => '',
|
|
'order' => '',
|
|
'counterCache'=>true
|
|
),
|
|
|
|
'Currency' => array('className' => 'Currency', 'foreignKey' => 'currency_id'),
|
|
|
|
'Document' => array('className'=>'Document', 'foreignKey'=>'document_id'),
|
|
|
|
'Job' => array('className'=>'Job', 'foreignKey'=>'job_id')
|
|
);
|
|
|
|
|
|
}
|
|
?>
|