<?php
class LineItem extends AppModel {

	var $name = 'LineItem';

	/**
	 * @var QuoteProduct;
	 * 
	 */
	
	var $LineItem;

        

	
	//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',
								'counterCache' => true,
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),
			'Product' => array('className' => 'Product',
								'foreignKey' => 'product_id',
								'conditions' => '',
								'fields' => '',
								'order' => ''
			),

                        'Principle' => array('className' => 'Principle',
                                                            'foreignKey' =>'principle_id'),

                        'Page' => array('className'=>'Page',
                                        'foreignKey'=>'page_id')

	);
	
	
	var $hasOne = array(
			'Costing' => array('className' => 'Costing',
								'foreignKey' => 'line_item_id')
		);
        
         


        var $order = "LineItem.item_number ASC";

}
?>