<?php
$strTableName="SPC__Quote";
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];

$strOriginalTableName="lead_bom";

$gstrOrderBy="";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy="order by ".$gstrOrderBy;

$g_orderindexes=array();
$gsqlHead="SELECT lead_bom.LBOMID,  lead_bom.Lead_ID,  lead_bom.`Material Code`,  lead_bom.Quantity,  lead_bom.Special_Price AS Unit_Price,  lead_bom.Quantity*lead_bom.Special_Price AS Amonut,  material_master.Tax AS `Tax %`,  (lead_bom.Quantity*lead_bom.Special_Price)*(material_master.Tax/100)+(lead_bom.Quantity*lead_bom.Special_Price) AS `Ext. Amount`,  material_master.Specification";
$gsqlFrom="FROM lead_bom  INNER JOIN material_master ON lead_bom.`Material Code` = material_master.`Material Code`";
$gsqlWhereExpr="";
$gsqlTail="";

include(getabspath("include/SPC__Quote_settings.php"));

// alias for 'SQLQuery' object
$gQuery = &$queryData_SPC__Quote;
$eventObj = &$tableEvents["SPC__Quote"];

$reportCaseSensitiveGroupFields = false;

$gstrSQL = gSQLWhere("");


?>