<?php
$strTableName="Lead-BOM";
$_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 Category`,  lead_bom.`Material Code`,  lead_bom.Quantity,  material_master.List_Price AS Unit_Price,  lead_bom.Quantity*material_master.List_price AS Amonut";
$gsqlFrom="FROM lead_bom  INNER JOIN material_master ON lead_bom.`Material Code` = material_master.`Material Code`";
$gsqlWhereExpr="";
$gsqlTail="";

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

// alias for 'SQLQuery' object
$gQuery = &$queryData_Lead_BOM;
$eventObj = &$tableEvents["Lead-BOM"];

$reportCaseSensitiveGroupFields = false;

$gstrSQL = gSQLWhere("");


?>