<?php
class SalesQuotationItemsTable extends Table {
	
	const C_TABLE                       = "SALES_QUOTATION_ITEMS" ;
	const C_PK                  		= "SALES_QUOTATION_ITEMS_ID";
	const C_ITEMS_ID                   	= "SALES_QUOTATION_ITEMS_ID";
	const C_ID                    	 	= "SALES_QUOTATION_ID";
	const C_SUBTOTAL                    = "SALES_QUOTATION_ITEMS_SUBTOTAL";
	const C_DISC_TYPE     				= "SALES_QUOTATION_ITEMS_DISCOUNT_TYPE";
	const C_DISC_PERCENTAGE             = "SALES_QUOTATION_ITEMS_DISCOUNT_PERCENTAGE";
	const C_DISC                        = "SALES_QUOTATION_ITEMS_DISCOUNT";
	const C_GST_PERCENTAGE              = "SALES_QUOTATION_ITEMS_GST_PERCENTAGE";
	const C_GST           				= "SALES_QUOTATION_ITEMS_GST";
	const C_GRAND_TOTAL           		= "SALES_QUOTATION_ITEMS_GRAND_TOTAL";
	const C_QTY_TOTAL           		= "SALES_QUOTATION_ITEMS_QTY_TOTAL";
	const C_REF_ID        				= "SALES_QUOTATION_ITEMS_REF_ID";

}

class SalesQuotationItemsTableDetail extends TableDetail {
	
	const C_ITEMS_ID                    = "identity|||";
	const C_ID                 			= "int||NO|(0)";
	const C_SUBTOTAL                 	= "decimal|18,4|NO|(0)";
	const C_DISC_TYPE         			= "nchar|1|NO|''";
	const C_DISC_PERCENTAGE             = "decimal|18,2|NO|(0)";
	const C_DISC                 		= "decimal|18,4|NO|(0)";
	const C_GST_PERCENTAGE             	= "decimal|18,2|NO|(0)";
	const C_GST              			= "decimal|18,4|NO|(0)";
	const C_GRAND_TOTAL              	= "decimal|18,4|NO|(0)";
	const C_QTY_TOTAL                 	= "decimal|18,2|NO|(0)";
	const C_REF_ID                 		= "int||NO|(0)";

}
?>