<?php
$tdatapurchasing_details_report = array();
$tdatapurchasing_details_report[".searchableFields"] = array();
$tdatapurchasing_details_report[".ShortName"] = "purchasing_details_report";
$tdatapurchasing_details_report[".OwnerID"] = "";
$tdatapurchasing_details_report[".OriginalTable"] = "purchasing_details";


$tdatapurchasing_details_report[".pagesByType"] = my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" );
$tdatapurchasing_details_report[".originalPagesByType"] = $tdatapurchasing_details_report[".pagesByType"];
$tdatapurchasing_details_report[".pages"] = types2pages( my_json_decode( "{\"report\":[\"report\"],\"rprint\":[\"rprint\"],\"search\":[\"search\"]}" ) );
$tdatapurchasing_details_report[".originalPages"] = $tdatapurchasing_details_report[".pages"];
$tdatapurchasing_details_report[".defaultPages"] = my_json_decode( "{\"report\":\"report\",\"rprint\":\"rprint\",\"search\":\"search\"}" );
$tdatapurchasing_details_report[".originalDefaultPages"] = $tdatapurchasing_details_report[".defaultPages"];

//	field labels
$fieldLabelspurchasing_details_report = array();
$fieldToolTipspurchasing_details_report = array();
$pageTitlespurchasing_details_report = array();
$placeHolderspurchasing_details_report = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelspurchasing_details_report["English"] = array();
	$fieldToolTipspurchasing_details_report["English"] = array();
	$placeHolderspurchasing_details_report["English"] = array();
	$pageTitlespurchasing_details_report["English"] = array();
	$fieldLabelspurchasing_details_report["English"]["id"] = "Id";
	$fieldToolTipspurchasing_details_report["English"]["id"] = "";
	$placeHolderspurchasing_details_report["English"]["id"] = "";
	$fieldLabelspurchasing_details_report["English"]["pur_id"] = "Pur Id";
	$fieldToolTipspurchasing_details_report["English"]["pur_id"] = "";
	$placeHolderspurchasing_details_report["English"]["pur_id"] = "";
	$fieldLabelspurchasing_details_report["English"]["bar_code"] = "Bar Code";
	$fieldToolTipspurchasing_details_report["English"]["bar_code"] = "";
	$placeHolderspurchasing_details_report["English"]["bar_code"] = "";
	$fieldLabelspurchasing_details_report["English"]["unit"] = "Unit";
	$fieldToolTipspurchasing_details_report["English"]["unit"] = "";
	$placeHolderspurchasing_details_report["English"]["unit"] = "";
	$fieldLabelspurchasing_details_report["English"]["gross"] = "Gross";
	$fieldToolTipspurchasing_details_report["English"]["gross"] = "";
	$placeHolderspurchasing_details_report["English"]["gross"] = "";
	$fieldLabelspurchasing_details_report["English"]["price"] = "Price";
	$fieldToolTipspurchasing_details_report["English"]["price"] = "";
	$placeHolderspurchasing_details_report["English"]["price"] = "";
	$fieldLabelspurchasing_details_report["English"]["net"] = "Net";
	$fieldToolTipspurchasing_details_report["English"]["net"] = "";
	$placeHolderspurchasing_details_report["English"]["net"] = "";
	$fieldLabelspurchasing_details_report["English"]["sub_total"] = "Sub Total";
	$fieldToolTipspurchasing_details_report["English"]["sub_total"] = "";
	$placeHolderspurchasing_details_report["English"]["sub_total"] = "";
	$fieldLabelspurchasing_details_report["English"]["product"] = "Product";
	$fieldToolTipspurchasing_details_report["English"]["product"] = "";
	$placeHolderspurchasing_details_report["English"]["product"] = "";
	$fieldLabelspurchasing_details_report["English"]["details"] = "Details";
	$fieldToolTipspurchasing_details_report["English"]["details"] = "";
	$placeHolderspurchasing_details_report["English"]["details"] = "";
	$fieldLabelspurchasing_details_report["English"]["date"] = "Date";
	$fieldToolTipspurchasing_details_report["English"]["date"] = "";
	$placeHolderspurchasing_details_report["English"]["date"] = "";
	$fieldLabelspurchasing_details_report["English"]["user"] = "User";
	$fieldToolTipspurchasing_details_report["English"]["user"] = "";
	$placeHolderspurchasing_details_report["English"]["user"] = "";
	$fieldLabelspurchasing_details_report["English"]["outlet_code"] = "Outlet Code";
	$fieldToolTipspurchasing_details_report["English"]["outlet_code"] = "";
	$placeHolderspurchasing_details_report["English"]["outlet_code"] = "";
	if (count($fieldToolTipspurchasing_details_report["English"]))
		$tdatapurchasing_details_report[".isUseToolTips"] = true;
}


	$tdatapurchasing_details_report[".NCSearch"] = true;



$tdatapurchasing_details_report[".shortTableName"] = "purchasing_details_report";
$tdatapurchasing_details_report[".nSecOptions"] = 0;

$tdatapurchasing_details_report[".mainTableOwnerID"] = "";
$tdatapurchasing_details_report[".entityType"] = 2;
$tdatapurchasing_details_report[".connId"] = "test2_at_localhost";


$tdatapurchasing_details_report[".strOriginalTableName"] = "purchasing_details";

	



$tdatapurchasing_details_report[".showAddInPopup"] = false;

$tdatapurchasing_details_report[".showEditInPopup"] = false;

$tdatapurchasing_details_report[".showViewInPopup"] = false;

//page's base css files names
$popupPagesLayoutNames = array();
$tdatapurchasing_details_report[".popupPagesLayoutNames"] = $popupPagesLayoutNames;


$tdatapurchasing_details_report[".listAjax"] = false;
//	temporary
$tdatapurchasing_details_report[".listAjax"] = false;

	$tdatapurchasing_details_report[".audit"] = false;

	$tdatapurchasing_details_report[".locking"] = false;


$pages = $tdatapurchasing_details_report[".defaultPages"];

if( $pages[PAGE_EDIT] ) {
	$tdatapurchasing_details_report[".edit"] = true;
	$tdatapurchasing_details_report[".afterEditAction"] = 1;
	$tdatapurchasing_details_report[".closePopupAfterEdit"] = 1;
	$tdatapurchasing_details_report[".afterEditActionDetTable"] = "";
}

if( $pages[PAGE_ADD] ) {
$tdatapurchasing_details_report[".add"] = true;
$tdatapurchasing_details_report[".afterAddAction"] = 1;
$tdatapurchasing_details_report[".closePopupAfterAdd"] = 1;
$tdatapurchasing_details_report[".afterAddActionDetTable"] = "";
}

if( $pages[PAGE_LIST] ) {
	$tdatapurchasing_details_report[".list"] = true;
}



$tdatapurchasing_details_report[".strSortControlSettingsJSON"] = "";




if( $pages[PAGE_VIEW] ) {
$tdatapurchasing_details_report[".view"] = true;
}

if( $pages[PAGE_IMPORT] ) {
$tdatapurchasing_details_report[".import"] = true;
}

if( $pages[PAGE_EXPORT] ) {
$tdatapurchasing_details_report[".exportTo"] = true;
}

if( $pages[PAGE_PRINT] ) {
$tdatapurchasing_details_report[".printFriendly"] = true;
}



$tdatapurchasing_details_report[".showSimpleSearchOptions"] = true; // temp fix #13449

// Allow Show/Hide Fields in GRID
$tdatapurchasing_details_report[".allowShowHideFields"] = true; // temp fix #13449
//

// Allow Fields Reordering in GRID
$tdatapurchasing_details_report[".allowFieldsReordering"] = true; // temp fix #13449
//

$tdatapurchasing_details_report[".isUseAjaxSuggest"] = true;




																																																			

$tdatapurchasing_details_report[".ajaxCodeSnippetAdded"] = false;

$tdatapurchasing_details_report[".buttonsAdded"] = false;

$tdatapurchasing_details_report[".addPageEvents"] = false;

// use timepicker for search panel
$tdatapurchasing_details_report[".isUseTimeForSearch"] = false;


$tdatapurchasing_details_report[".badgeColor"] = "E8926F";


$tdatapurchasing_details_report[".allSearchFields"] = array();
$tdatapurchasing_details_report[".filterFields"] = array();
$tdatapurchasing_details_report[".requiredSearchFields"] = array();

$tdatapurchasing_details_report[".googleLikeFields"] = array();
$tdatapurchasing_details_report[".googleLikeFields"][] = "id";
$tdatapurchasing_details_report[".googleLikeFields"][] = "pur_id";
$tdatapurchasing_details_report[".googleLikeFields"][] = "bar_code";
$tdatapurchasing_details_report[".googleLikeFields"][] = "unit";
$tdatapurchasing_details_report[".googleLikeFields"][] = "gross";
$tdatapurchasing_details_report[".googleLikeFields"][] = "net";
$tdatapurchasing_details_report[".googleLikeFields"][] = "sub_total";
$tdatapurchasing_details_report[".googleLikeFields"][] = "product";
$tdatapurchasing_details_report[".googleLikeFields"][] = "date";
$tdatapurchasing_details_report[".googleLikeFields"][] = "user";
$tdatapurchasing_details_report[".googleLikeFields"][] = "outlet_code";
$tdatapurchasing_details_report[".googleLikeFields"][] = "price";
$tdatapurchasing_details_report[".googleLikeFields"][] = "details";



$tdatapurchasing_details_report[".tableType"] = "report";

$tdatapurchasing_details_report[".printerPageOrientation"] = 0;
$tdatapurchasing_details_report[".nPrinterPageScale"] = 100;

$tdatapurchasing_details_report[".nPrinterSplitRecords"] = 40;

$tdatapurchasing_details_report[".geocodingEnabled"] = false;

//report settings
$tdatapurchasing_details_report[".printReportLayout"] = 3;

$tdatapurchasing_details_report[".reportPrintPartitionType"] = 1;
$tdatapurchasing_details_report[".reportPrintGroupsPerPage"] = 3;
$tdatapurchasing_details_report[".lowGroup"] = 4;



$tdatapurchasing_details_report[".reportGroupFields"] = true;
$tdatapurchasing_details_report[".pageSize"] = 5;
$tdatapurchasing_details_report[".showGroupSummaryCount"] = true;
$reportGroupFieldsList = array();
$reportGroupFields = array();
	$reportGroupFieldsList []= "date";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "date";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 1;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
	$reportGroupFieldsList []= "outlet_code";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "outlet_code";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 2;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
	$reportGroupFieldsList []= "details";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "details";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 3;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
	$reportGroupFieldsList []= "product";

	$rgroupField = array();
	$rgroupField['strGroupField'] = "product";
	$rgroupField['groupInterval'] = 0;
	$rgroupField['groupOrder'] = 4;
	$rgroupField['showGroupSummary'] = "1";
	$rgroupField['crossTabAxis'] = "0";
	$reportGroupFields[] = $rgroupField;
$tdatapurchasing_details_report[".reportGroupFieldsData"] = $reportGroupFields;
$tdatapurchasing_details_report[".reportGroupFieldsList"] = $reportGroupFieldsList;


$tdatapurchasing_details_report[".isExistTotalFields"] = true;


$tdatapurchasing_details_report[".reportPageSummary"] = true;

$tdatapurchasing_details_report[".reportGlobalSummary"] = true;

$tdatapurchasing_details_report[".repShowDet"] = true;

$tdatapurchasing_details_report[".reportLayout"] = 3;

//end of report settings










$tstrOrderBy = "";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatapurchasing_details_report[".strOrderBy"] = $tstrOrderBy;

$tdatapurchasing_details_report[".orderindexes"] = array();


$tdatapurchasing_details_report[".sqlHead"] = "SELECT purchasing_details.id,  purchasing_details.pur_id,  purchasing_details.bar_code,  purchasing_details.unit,  purchasing_details.gross,  purchasing_details.net,  purchasing_details.sub_total,  purchasing_details.product,  DATE(purchasing.date_and_time) AS \"date\",  purchasing.`user`,  purchasing.outlet_code,  purchasing_details.price,  purchasing_details.details";
$tdatapurchasing_details_report[".sqlFrom"] = "FROM purchasing_details  INNER JOIN purchasing ON purchasing.id = purchasing_details.pur_id";
$tdatapurchasing_details_report[".sqlWhereExpr"] = "";
$tdatapurchasing_details_report[".sqlTail"] = "";










//fill array of records per page for list and report without group fields
$arrRPP = array();
$arrRPP[] = 10;
$arrRPP[] = 20;
$arrRPP[] = 30;
$arrRPP[] = 50;
$arrRPP[] = 100;
$arrRPP[] = 500;
$arrRPP[] = -1;
$tdatapurchasing_details_report[".arrRecsPerPage"] = $arrRPP;

//fill array of groups per page for report with group fields
$arrGPP = array();
$arrGPP[] = 1;
$arrGPP[] = 3;
$arrGPP[] = 5;
$arrGPP[] = 10;
$arrGPP[] = 50;
$arrGPP[] = 100;
$arrGPP[] = -1;
$tdatapurchasing_details_report[".arrGroupsPerPage"] = $arrGPP;

$tdatapurchasing_details_report[".highlightSearchResults"] = true;

$tableKeyspurchasing_details_report = array();
$tableKeyspurchasing_details_report[] = "id";
$tdatapurchasing_details_report[".Keys"] = $tableKeyspurchasing_details_report;


$tdatapurchasing_details_report[".hideMobileList"] = array();




//	id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "id";
	$fdata["GoodName"] = "id";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","id");
	$fdata["FieldType"] = 3;

		// report field settings
					// end of report field settings

		$fdata["AutoInc"] = true;

	
			

		$fdata["strField"] = "id";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.id";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["id"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "id";
//	pur_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "pur_id";
	$fdata["GoodName"] = "pur_id";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","pur_id");
	$fdata["FieldType"] = 3;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "pur_id";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.pur_id";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["pur_id"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "pur_id";
//	bar_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "bar_code";
	$fdata["GoodName"] = "bar_code";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","bar_code");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "bar_code";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.bar_code";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["bar_code"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "bar_code";
//	unit
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "unit";
	$fdata["GoodName"] = "unit";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","unit");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "unit";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.unit";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["unit"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "unit";
//	gross
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "gross";
	$fdata["GoodName"] = "gross";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","gross");
	$fdata["FieldType"] = 14;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "gross";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.gross";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["gross"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "gross";
//	net
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "net";
	$fdata["GoodName"] = "net";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","net");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "net";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.net";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
		$edata["autoUpdatable"] = true;

	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["net"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "net";
//	sub_total
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "sub_total";
	$fdata["GoodName"] = "sub_total";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","sub_total");
	$fdata["FieldType"] = 14;

		// report field settings
					$fdata["isTotalSum"] = true;
	// end of report field settings

	
	
			

		$fdata["strField"] = "sub_total";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.sub_total";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["sub_total"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "sub_total";
//	product
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "product";
	$fdata["GoodName"] = "product";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","product");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "product";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.product";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "product";
		$edata["listPageId"] = "list";
		$edata["autoCompleteFieldsOnEdit"] = 1;
	$edata["autoCompleteFields"] = array();
		$edata["autoCompleteFields"][] = array('masterF'=>"bar_code", 'lookupF'=>"bar_code");
	$edata["autoCompleteFields"][] = array('masterF'=>"unit", 'lookupF'=>"unit");
	$edata["LCType"] = 1;

	
		
	$edata["LinkField"] = "product_name";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "product_name";

	

	
	$edata["LookupOrderBy"] = "id";

	
	
	
	

	
	
	
// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["product"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "product";
//	date
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "date";
	$fdata["GoodName"] = "date";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","date");
	$fdata["FieldType"] = 7;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "date";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "DATE(purchasing.date_and_time)";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Short Date");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Date");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
		$edata["DateEditType"] = 13;
	$edata["InitialYearFactor"] = 100;
	$edata["LastYearFactor"] = 10;

	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Equals", "More than", "Less than", "Between", EMPTY_SEARCH, NOT_EMPTY );
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
			$fdata["filterTotalFields"] = "id";
		$fdata["filterFormat"] = "Interval slider";
		$fdata["showCollapsed"] = false;

	
	
	
	

	$fdata["filterKnobsType"] = 0;
		$fdata["filterSliderStepType"] = 3;
	$fdata["filterSliderStepValue"] = 1;
//end of Filters settings


	$tdatapurchasing_details_report["date"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "date";
//	user
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "user";
	$fdata["GoodName"] = "user";
	$fdata["ownerTable"] = "purchasing";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","user");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "user";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing.`user`";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "text";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
	
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 2;
		$fdata["filterTotalFields"] = "id";
		$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["user"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "user";
//	outlet_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "outlet_code";
	$fdata["GoodName"] = "outlet_code";
	$fdata["ownerTable"] = "purchasing";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","outlet_code");
	$fdata["FieldType"] = 3;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "outlet_code";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing.outlet_code";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Lookup wizard");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "company_profile";
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
		
	$edata["LinkField"] = "id";
	$edata["LinkFieldType"] = 0;
	$edata["DisplayField"] = "country";

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
	

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
		
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Equals";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 2;
		$fdata["filterTotalFields"] = "id";
		$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["outlet_code"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "outlet_code";
//	price
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "price";
	$fdata["GoodName"] = "price";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","price");
	$fdata["FieldType"] = 14;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "price";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.price";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 2;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Text field");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



	
	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
			$edata["HTML5InuptType"] = "number";

		$edata["EditParams"] = "";
		
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");
							
	
	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["price"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "price";
//	details
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "details";
	$fdata["GoodName"] = "details";
	$fdata["ownerTable"] = "purchasing_details";
	$fdata["Label"] = GetFieldLabel("purchasing_details_Report","details");
	$fdata["FieldType"] = 200;

		// report field settings
					// end of report field settings

	
	
			

		$fdata["strField"] = "details";

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "purchasing_details.details";

	
	
				$fdata["UploadFolder"] = "files";

//  Begin View Formats
	$fdata["ViewFormats"] = array();

	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

	
		$vdata["truncateText"] = true;
	$vdata["NumberOfChars"] = 80;

	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats
	$fdata["EditFormats"] = array();

	$edata = array("EditFormat" => "Readonly");

	
		$edata["weekdayMessage"] = array("message" => "", "messageType" => "Text");
	$edata["weekdays"] = "[]";


	
	



		$edata["IsRequired"] = true;

	
	
	
			$edata["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

//	Begin validation
	$edata["validateAs"] = array();
	$edata["validateAs"]["basicValidate"] = array();
	$edata["validateAs"]["customMessages"] = array();
							
		$edata["autoUpdatable"] = true;

	//	End validation

	
	
	
	
	
	$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats


	$fdata["isSeparate"] = false;




// the field's search options settings
		$fdata["defaultSearchOption"] = "Contains";

			// the default search options list
				$fdata["searchOptionsList"] = array("Contains", "Equals", "Starts with", "More than", "Less than", "Between", "Empty", NOT_EMPTY);
// the end of search options settings


//Filters settings
	$fdata["filterTotals"] = 0;
		$fdata["filterMultiSelect"] = 2;
		$fdata["filterTotalFields"] = "id";
		$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

		$fdata["sortValueType"] = 0;
		$fdata["numberOfVisibleItems"] = 10;

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatapurchasing_details_report["details"] = $fdata;
		$tdatapurchasing_details_report[".searchableFields"][] = "details";


$tables_data["purchasing_details Report"]=&$tdatapurchasing_details_report;
$field_labels["purchasing_details_Report"] = &$fieldLabelspurchasing_details_report;
$fieldToolTips["purchasing_details_Report"] = &$fieldToolTipspurchasing_details_report;
$placeHolders["purchasing_details_Report"] = &$placeHolderspurchasing_details_report;
$page_titles["purchasing_details_Report"] = &$pageTitlespurchasing_details_report;

// -----------------start  prepare master-details data arrays ------------------------------//
// tables which are detail tables for current table (master)
$detailsTablesData["purchasing_details Report"] = array();

// tables which are master tables for current table (detail)
$masterTablesData["purchasing_details Report"] = array();



// -----------------end  prepare master-details data arrays ------------------------------//



require_once(getabspath("classes/sql.php"));











function createSqlQuery_purchasing_details_report()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "purchasing_details.id,  purchasing_details.pur_id,  purchasing_details.bar_code,  purchasing_details.unit,  purchasing_details.gross,  purchasing_details.net,  purchasing_details.sub_total,  purchasing_details.product,  DATE(purchasing.date_and_time) AS \"date\",  purchasing.`user`,  purchasing.outlet_code,  purchasing_details.price,  purchasing_details.details";
$proto0["m_strFrom"] = "FROM purchasing_details  INNER JOIN purchasing ON purchasing.id = purchasing_details.pur_id";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
$proto2["m_strCase"] = "";
$proto2["m_havingmode"] = false;
$proto2["m_inBrackets"] = false;
$proto2["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto2);

$proto0["m_where"] = $obj;
$proto4=array();
$proto4["m_sql"] = "";
$proto4["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto4["m_column"]=$obj;
$proto4["m_contained"] = array();
$proto4["m_strCase"] = "";
$proto4["m_havingmode"] = false;
$proto4["m_inBrackets"] = false;
$proto4["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto4);

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto6=array();
			$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto6["m_sql"] = "purchasing_details.id";
$proto6["m_srcTableName"] = "purchasing_details Report";
$proto6["m_expr"]=$obj;
$proto6["m_alias"] = "";
$obj = new SQLFieldListItem($proto6);

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "pur_id",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto8["m_sql"] = "purchasing_details.pur_id";
$proto8["m_srcTableName"] = "purchasing_details Report";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "bar_code",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto10["m_sql"] = "purchasing_details.bar_code";
$proto10["m_srcTableName"] = "purchasing_details Report";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "unit",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto12["m_sql"] = "purchasing_details.unit";
$proto12["m_srcTableName"] = "purchasing_details Report";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "gross",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto14["m_sql"] = "purchasing_details.gross";
$proto14["m_srcTableName"] = "purchasing_details Report";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "net",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto16["m_sql"] = "purchasing_details.net";
$proto16["m_srcTableName"] = "purchasing_details Report";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "sub_total",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto18["m_sql"] = "purchasing_details.sub_total";
$proto18["m_srcTableName"] = "purchasing_details Report";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "product",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto20["m_sql"] = "purchasing_details.product";
$proto20["m_srcTableName"] = "purchasing_details Report";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$proto23=array();
$proto23["m_functiontype"] = "SQLF_CUSTOM";
$proto23["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "purchasing.date_and_time"
));

$proto23["m_arguments"][]=$obj;
$proto23["m_strFunctionName"] = "DATE";
$obj = new SQLFunctionCall($proto23);

$proto22["m_sql"] = "DATE(purchasing.date_and_time)";
$proto22["m_srcTableName"] = "purchasing_details Report";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "date";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "user",
	"m_strTable" => "purchasing",
	"m_srcTableName" => "purchasing_details Report"
));

$proto25["m_sql"] = "purchasing.`user`";
$proto25["m_srcTableName"] = "purchasing_details Report";
$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto0["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "outlet_code",
	"m_strTable" => "purchasing",
	"m_srcTableName" => "purchasing_details Report"
));

$proto27["m_sql"] = "purchasing.outlet_code";
$proto27["m_srcTableName"] = "purchasing_details Report";
$proto27["m_expr"]=$obj;
$proto27["m_alias"] = "";
$obj = new SQLFieldListItem($proto27);

$proto0["m_fieldlist"][]=$obj;
						$proto29=array();
			$obj = new SQLField(array(
	"m_strName" => "price",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto29["m_sql"] = "purchasing_details.price";
$proto29["m_srcTableName"] = "purchasing_details Report";
$proto29["m_expr"]=$obj;
$proto29["m_alias"] = "";
$obj = new SQLFieldListItem($proto29);

$proto0["m_fieldlist"][]=$obj;
						$proto31=array();
			$obj = new SQLField(array(
	"m_strName" => "details",
	"m_strTable" => "purchasing_details",
	"m_srcTableName" => "purchasing_details Report"
));

$proto31["m_sql"] = "purchasing_details.details";
$proto31["m_srcTableName"] = "purchasing_details Report";
$proto31["m_expr"]=$obj;
$proto31["m_alias"] = "";
$obj = new SQLFieldListItem($proto31);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto33=array();
$proto33["m_link"] = "SQLL_MAIN";
			$proto34=array();
$proto34["m_strName"] = "purchasing_details";
$proto34["m_srcTableName"] = "purchasing_details Report";
$proto34["m_columns"] = array();
$proto34["m_columns"][] = "id";
$proto34["m_columns"][] = "pur_id";
$proto34["m_columns"][] = "bar_code";
$proto34["m_columns"][] = "unit";
$proto34["m_columns"][] = "gross";
$proto34["m_columns"][] = "price";
$proto34["m_columns"][] = "tar";
$proto34["m_columns"][] = "net";
$proto34["m_columns"][] = "sub_total";
$proto34["m_columns"][] = "stock_rece_code";
$proto34["m_columns"][] = "stock_send_code";
$proto34["m_columns"][] = "product";
$proto34["m_columns"][] = "details";
$proto34["m_columns"][] = "package_details";
$proto34["m_columns"][] = "cstatus";
$proto34["m_columns"][] = "outlet_code";
$proto34["m_columns"][] = "user";
$obj = new SQLTable($proto34);

$proto33["m_table"] = $obj;
$proto33["m_sql"] = "purchasing_details";
$proto33["m_alias"] = "";
$proto33["m_srcTableName"] = "purchasing_details Report";
$proto35=array();
$proto35["m_sql"] = "";
$proto35["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto35["m_column"]=$obj;
$proto35["m_contained"] = array();
$proto35["m_strCase"] = "";
$proto35["m_havingmode"] = false;
$proto35["m_inBrackets"] = false;
$proto35["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto35);

$proto33["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto33);

$proto0["m_fromlist"][]=$obj;
												$proto37=array();
$proto37["m_link"] = "SQLL_INNERJOIN";
			$proto38=array();
$proto38["m_strName"] = "purchasing";
$proto38["m_srcTableName"] = "purchasing_details Report";
$proto38["m_columns"] = array();
$proto38["m_columns"][] = "id";
$proto38["m_columns"][] = "date_and_time";
$proto38["m_columns"][] = "supplier";
$proto38["m_columns"][] = "tt";
$proto38["m_columns"][] = "branch_code";
$proto38["m_columns"][] = "user";
$proto38["m_columns"][] = "outlet_code";
$proto38["m_columns"][] = "payment";
$proto38["m_columns"][] = "h";
$proto38["m_columns"][] = "f";
$proto38["m_columns"][] = "advance_id";
$proto38["m_columns"][] = "status";
$proto38["m_columns"][] = "left_advance";
$proto38["m_columns"][] = "details";
$proto38["m_columns"][] = "supplier_id";
$proto38["m_columns"][] = "paid";
$proto38["m_columns"][] = "total_amount";
$proto38["m_columns"][] = "left";
$proto38["m_columns"][] = "user2";
$obj = new SQLTable($proto38);

$proto37["m_table"] = $obj;
$proto37["m_sql"] = "INNER JOIN purchasing ON purchasing.id = purchasing_details.pur_id";
$proto37["m_alias"] = "";
$proto37["m_srcTableName"] = "purchasing_details Report";
$proto39=array();
$proto39["m_sql"] = "purchasing.id = purchasing_details.pur_id";
$proto39["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "purchasing",
	"m_srcTableName" => "purchasing_details Report"
));

$proto39["m_column"]=$obj;
$proto39["m_contained"] = array();
$proto39["m_strCase"] = "= purchasing_details.pur_id";
$proto39["m_havingmode"] = false;
$proto39["m_inBrackets"] = false;
$proto39["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto39);

$proto37["m_joinon"] = $obj;
$obj = new SQLFromListItem($proto37);

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
$proto0["m_srcTableName"]="purchasing_details Report";		
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_purchasing_details_report = createSqlQuery_purchasing_details_report();


	
		;

													

$tdatapurchasing_details_report[".sqlquery"] = $queryData_purchasing_details_report;



$tableEvents["purchasing_details Report"] = new eventsBase;
$tdatapurchasing_details_report[".hasEvents"] = false;

?>