2009-01-12 21:13:18 -08:00
|
|
|
<?php
|
|
|
|
|
class QuoteProduct extends AppModel {
|
|
|
|
|
|
|
|
|
|
var $name = 'QuoteProduct';
|
|
|
|
|
|
2009-09-10 19:50:16 -07:00
|
|
|
/**
|
|
|
|
|
* @var QuoteProduct;
|
|
|
|
|
*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
var $QuoteProduct;
|
2009-11-15 19:31:10 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2009-09-10 19:50:16 -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(
|
|
|
|
|
'Quote' => array('className' => 'Quote',
|
|
|
|
|
'foreignKey' => 'quote_id',
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
|
|
|
|
'order' => ''
|
|
|
|
|
),
|
|
|
|
|
'Product' => array('className' => 'Product',
|
|
|
|
|
'foreignKey' => 'product_id',
|
|
|
|
|
'conditions' => '',
|
|
|
|
|
'fields' => '',
|
|
|
|
|
'order' => ''
|
2009-11-09 16:26:25 -08:00
|
|
|
),
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
);
|
2009-10-08 01:42:23 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
var $hasOne = array(
|
|
|
|
|
'Costing' => array('className' => 'Costing',
|
2009-11-16 14:24:53 -08:00
|
|
|
'foreignKey' => 'quote_product_id')
|
2009-10-08 01:42:23 -07:00
|
|
|
);
|
2009-11-16 14:24:53 -08:00
|
|
|
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
|
2009-11-15 19:31:10 -08:00
|
|
|
|
|
|
|
|
var $order = "item_number ASC";
|
|
|
|
|
|
2009-01-12 21:13:18 -08:00
|
|
|
}
|
2009-10-10 00:06:46 -07:00
|
|
|
?>
|