<?php
$tdataexpenditure_statement = array();
$tdataexpenditure_statement[".searchableFields"] = array();
$tdataexpenditure_statement[".ShortName"] = "expenditure_statement";
$tdataexpenditure_statement[".OwnerID"] = "ud";
$tdataexpenditure_statement[".OriginalTable"] = "expenditure_statement";


$tdataexpenditure_statement[".pagesByType"] = my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" );
$tdataexpenditure_statement[".originalPagesByType"] = $tdataexpenditure_statement[".pagesByType"];
$tdataexpenditure_statement[".pages"] = types2pages( my_json_decode( "{\"add\":[\"add\"],\"edit\":[\"edit\"],\"export\":[\"export\"],\"import\":[\"import\"],\"list\":[\"list\"],\"print\":[\"print\"],\"search\":[\"search\"],\"view\":[\"view\"]}" ) );
$tdataexpenditure_statement[".originalPages"] = $tdataexpenditure_statement[".pages"];
$tdataexpenditure_statement[".defaultPages"] = my_json_decode( "{\"add\":\"add\",\"edit\":\"edit\",\"export\":\"export\",\"import\":\"import\",\"list\":\"list\",\"print\":\"print\",\"search\":\"search\",\"view\":\"view\"}" );
$tdataexpenditure_statement[".originalDefaultPages"] = $tdataexpenditure_statement[".defaultPages"];

//	field labels
$fieldLabelsexpenditure_statement = array();
$fieldToolTipsexpenditure_statement = array();
$pageTitlesexpenditure_statement = array();
$placeHoldersexpenditure_statement = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsexpenditure_statement["English"] = array();
	$fieldToolTipsexpenditure_statement["English"] = array();
	$placeHoldersexpenditure_statement["English"] = array();
	$pageTitlesexpenditure_statement["English"] = array();
	$fieldLabelsexpenditure_statement["English"]["id"] = "Id";
	$fieldToolTipsexpenditure_statement["English"]["id"] = "";
	$placeHoldersexpenditure_statement["English"]["id"] = "";
	$fieldLabelsexpenditure_statement["English"]["code"] = "Code";
	$fieldToolTipsexpenditure_statement["English"]["code"] = "";
	$placeHoldersexpenditure_statement["English"]["code"] = "";
	$fieldLabelsexpenditure_statement["English"]["allocation"] = "Allocation";
	$fieldToolTipsexpenditure_statement["English"]["allocation"] = "";
	$placeHoldersexpenditure_statement["English"]["allocation"] = "";
	$fieldLabelsexpenditure_statement["English"]["expenditure_up_to"] = "Expenditure Up To";
	$fieldToolTipsexpenditure_statement["English"]["expenditure_up_to"] = "";
	$placeHoldersexpenditure_statement["English"]["expenditure_up_to"] = "";
	$fieldLabelsexpenditure_statement["English"]["expenditure_for_month"] = "Expenditure For Month";
	$fieldToolTipsexpenditure_statement["English"]["expenditure_for_month"] = "";
	$placeHoldersexpenditure_statement["English"]["expenditure_for_month"] = "";
	$fieldLabelsexpenditure_statement["English"]["surcharge_for_month"] = "Surcharge For Month";
	$fieldToolTipsexpenditure_statement["English"]["surcharge_for_month"] = "";
	$placeHoldersexpenditure_statement["English"]["surcharge_for_month"] = "";
	$fieldLabelsexpenditure_statement["English"]["net_expenditure"] = "Net Expenditure";
	$fieldToolTipsexpenditure_statement["English"]["net_expenditure"] = "";
	$placeHoldersexpenditure_statement["English"]["net_expenditure"] = "";
	$fieldLabelsexpenditure_statement["English"]["balance"] = "Balance";
	$fieldToolTipsexpenditure_statement["English"]["balance"] = "";
	$placeHoldersexpenditure_statement["English"]["balance"] = "";
	$fieldLabelsexpenditure_statement["English"]["ud"] = "Ud";
	$fieldToolTipsexpenditure_statement["English"]["ud"] = "";
	$placeHoldersexpenditure_statement["English"]["ud"] = "";
	$fieldLabelsexpenditure_statement["English"]["user"] = "User";
	$fieldToolTipsexpenditure_statement["English"]["user"] = "";
	$placeHoldersexpenditure_statement["English"]["user"] = "";
	$fieldLabelsexpenditure_statement["English"]["month"] = "Month";
	$fieldToolTipsexpenditure_statement["English"]["month"] = "";
	$placeHoldersexpenditure_statement["English"]["month"] = "";
	$fieldLabelsexpenditure_statement["English"]["status"] = "Status";
	$fieldToolTipsexpenditure_statement["English"]["status"] = "";
	$placeHoldersexpenditure_statement["English"]["status"] = "";
	$fieldLabelsexpenditure_statement["English"]["accounting_code"] = "Accounting Code";
	$fieldToolTipsexpenditure_statement["English"]["accounting_code"] = "";
	$placeHoldersexpenditure_statement["English"]["accounting_code"] = "";
	if (count($fieldToolTipsexpenditure_statement["English"]))
		$tdataexpenditure_statement[".isUseToolTips"] = true;
}
if(mlang_getcurrentlang()=="sinhala")
{
	$fieldLabelsexpenditure_statement["sinhala"] = array();
	$fieldToolTipsexpenditure_statement["sinhala"] = array();
	$placeHoldersexpenditure_statement["sinhala"] = array();
	$pageTitlesexpenditure_statement["sinhala"] = array();
	$fieldLabelsexpenditure_statement["sinhala"]["id"] = "Id";
	$fieldToolTipsexpenditure_statement["sinhala"]["id"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["id"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["code"] = "Code";
	$fieldToolTipsexpenditure_statement["sinhala"]["code"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["code"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["allocation"] = "Allocation";
	$fieldToolTipsexpenditure_statement["sinhala"]["allocation"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["allocation"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["expenditure_up_to"] = "Expenditure Up To";
	$fieldToolTipsexpenditure_statement["sinhala"]["expenditure_up_to"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["expenditure_up_to"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["expenditure_for_month"] = "Expenditure For Month";
	$fieldToolTipsexpenditure_statement["sinhala"]["expenditure_for_month"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["expenditure_for_month"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["surcharge_for_month"] = "Surcharge For Month";
	$fieldToolTipsexpenditure_statement["sinhala"]["surcharge_for_month"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["surcharge_for_month"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["net_expenditure"] = "Net Expenditure";
	$fieldToolTipsexpenditure_statement["sinhala"]["net_expenditure"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["net_expenditure"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["balance"] = "Balance";
	$fieldToolTipsexpenditure_statement["sinhala"]["balance"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["balance"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["ud"] = "Ud";
	$fieldToolTipsexpenditure_statement["sinhala"]["ud"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["ud"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["user"] = "User";
	$fieldToolTipsexpenditure_statement["sinhala"]["user"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["user"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["month"] = "Month";
	$fieldToolTipsexpenditure_statement["sinhala"]["month"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["month"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["status"] = "Status";
	$fieldToolTipsexpenditure_statement["sinhala"]["status"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["status"] = "";
	$fieldLabelsexpenditure_statement["sinhala"]["accounting_code"] = "Accounting Code";
	$fieldToolTipsexpenditure_statement["sinhala"]["accounting_code"] = "";
	$placeHoldersexpenditure_statement["sinhala"]["accounting_code"] = "";
	if (count($fieldToolTipsexpenditure_statement["sinhala"]))
		$tdataexpenditure_statement[".isUseToolTips"] = true;
}


	$tdataexpenditure_statement[".NCSearch"] = true;



$tdataexpenditure_statement[".shortTableName"] = "expenditure_statement";
$tdataexpenditure_statement[".nSecOptions"] = 1;

$tdataexpenditure_statement[".mainTableOwnerID"] = "ud";
$tdataexpenditure_statement[".entityType"] = 0;
$tdataexpenditure_statement[".connId"] = "allo_at_localhost";


$tdataexpenditure_statement[".strOriginalTableName"] = "expenditure_statement";

	



$tdataexpenditure_statement[".showAddInPopup"] = false;

$tdataexpenditure_statement[".showEditInPopup"] = false;

$tdataexpenditure_statement[".showViewInPopup"] = false;

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


	$tdataexpenditure_statement[".listAjax"] = true;
//	temporary
$tdataexpenditure_statement[".listAjax"] = false;

	$tdataexpenditure_statement[".audit"] = false;

	$tdataexpenditure_statement[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdataexpenditure_statement[".isUseAjaxSuggest"] = true;

$tdataexpenditure_statement[".rowHighlite"] = true;



																								

$tdataexpenditure_statement[".ajaxCodeSnippetAdded"] = false;

$tdataexpenditure_statement[".buttonsAdded"] = false;

$tdataexpenditure_statement[".addPageEvents"] = false;

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


$tdataexpenditure_statement[".badgeColor"] = "8FBC8B";


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

$tdataexpenditure_statement[".googleLikeFields"] = array();
$tdataexpenditure_statement[".googleLikeFields"][] = "code";
$tdataexpenditure_statement[".googleLikeFields"][] = "allocation";
$tdataexpenditure_statement[".googleLikeFields"][] = "month";
$tdataexpenditure_statement[".googleLikeFields"][] = "accounting_code";



$tdataexpenditure_statement[".tableType"] = "list";

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

$tdataexpenditure_statement[".nPrinterSplitRecords"] = 40;

$tdataexpenditure_statement[".geocodingEnabled"] = false;










$tdataexpenditure_statement[".pageSize"] = 20;

$tdataexpenditure_statement[".warnLeavingPages"] = true;



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

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


$tdataexpenditure_statement[".sqlHead"] = "SELECT id,  	code,  	allocation,  	expenditure_up_to,  	expenditure_for_month,  	surcharge_for_month,  	net_expenditure,  	balance,  	ud,  	`user`,  	`month`,  	status,  	accounting_code";
$tdataexpenditure_statement[".sqlFrom"] = "FROM expenditure_statement";
$tdataexpenditure_statement[".sqlWhereExpr"] = "status=\"Checking\"";
$tdataexpenditure_statement[".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;
$tdataexpenditure_statement[".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;
$tdataexpenditure_statement[".arrGroupsPerPage"] = $arrGPP;

$tdataexpenditure_statement[".highlightSearchResults"] = true;

$tableKeysexpenditure_statement = array();
$tableKeysexpenditure_statement[] = "id";
$tdataexpenditure_statement[".Keys"] = $tableKeysexpenditure_statement;


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




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

	
		$fdata["AutoInc"] = true;

	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["id"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "id";
//	code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "code";
	$fdata["GoodName"] = "code";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","code");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "code";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $vdata;
	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["list"] = $vdata;
	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["print"] = $vdata;
	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["export"] = $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"]["edit"] = $edata;
	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

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

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

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
	

	
	
	
// 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"]["add"] = $edata;
	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

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

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

	

	
	$edata["LookupOrderBy"] = "";

	
	
	
	

	
	
	
// 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"] = true;




// 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


	$tdataexpenditure_statement["code"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "code";
//	allocation
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "allocation";
	$fdata["GoodName"] = "allocation";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","allocation");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "allocation";

	
	
				$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"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["allocation"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "allocation";
//	expenditure_up_to
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "expenditure_up_to";
	$fdata["GoodName"] = "expenditure_up_to";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","expenditure_up_to");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "expenditure_up_to";

	
	
				$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"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["expenditure_up_to"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "expenditure_up_to";
//	expenditure_for_month
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "expenditure_for_month";
	$fdata["GoodName"] = "expenditure_for_month";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","expenditure_for_month");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "expenditure_for_month";

	
	
				$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"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["expenditure_for_month"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "expenditure_for_month";
//	surcharge_for_month
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "surcharge_for_month";
	$fdata["GoodName"] = "surcharge_for_month";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","surcharge_for_month");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "surcharge_for_month";

	
	
				$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"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["surcharge_for_month"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "surcharge_for_month";
//	net_expenditure
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "net_expenditure";
	$fdata["GoodName"] = "net_expenditure";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","net_expenditure");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "net_expenditure";

	
	
				$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"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["net_expenditure"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "net_expenditure";
//	balance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "balance";
	$fdata["GoodName"] = "balance";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","balance");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "balance";

	
	
				$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"]["view"] = $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"]["edit"] = $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


	$tdataexpenditure_statement["balance"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "balance";
//	ud
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "ud";
	$fdata["GoodName"] = "ud";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","ud");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "ud";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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["EditParams"].= " maxlength=11";

		$edata["controlWidth"] = 200;

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

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $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


	$tdataexpenditure_statement["ud"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "ud";
//	user
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "user";
	$fdata["GoodName"] = "user";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","user");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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["EditParams"].= " maxlength=100";

		$edata["controlWidth"] = 200;

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

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $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


	$tdataexpenditure_statement["user"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "user";
//	month
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "month";
	$fdata["GoodName"] = "month";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","month");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`month`";

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

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

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

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $vdata;
	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["list"] = $vdata;
	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["print"] = $vdata;
	$vdata = array("ViewFormat" => "Number");

	
	
	
	
	
	
		$vdata["DecimalDigits"] = 0;

	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["export"] = $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"] = 0;
			$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
		$edata["LCType"] = 0;

	
	
		$edata["LookupValues"] = array();
	$edata["LookupValues"][] = "1";
	$edata["LookupValues"][] = "2";
	$edata["LookupValues"][] = "3";
	$edata["LookupValues"][] = "4";
	$edata["LookupValues"][] = "5";
	$edata["LookupValues"][] = "6";
	$edata["LookupValues"][] = "4";
	$edata["LookupValues"][] = "8";
	$edata["LookupValues"][] = "9";
	$edata["LookupValues"][] = "10";
	$edata["LookupValues"][] = "11";
	$edata["LookupValues"][] = "12";

	
		$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"]["edit"] = $edata;
	$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"]["add"] = $edata;
	$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"] = true;




// 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


	$tdataexpenditure_statement["month"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "month";
//	status
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "status";
	$fdata["GoodName"] = "status";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","status");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "status";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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["EditParams"].= " maxlength=100";

		$edata["controlWidth"] = 200;

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

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $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


	$tdataexpenditure_statement["status"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "status";
//	accounting_code
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "accounting_code";
	$fdata["GoodName"] = "accounting_code";
	$fdata["ownerTable"] = "expenditure_statement";
	$fdata["Label"] = GetFieldLabel("expenditure_statement","accounting_code");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "accounting_code";

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

	$fdata["ViewFormats"]["view"] = $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["EditParams"].= " maxlength=250";

		$edata["controlWidth"] = 200;

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

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $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


	$tdataexpenditure_statement["accounting_code"] = $fdata;
		$tdataexpenditure_statement[".searchableFields"][] = "accounting_code";


$tables_data["expenditure_statement"]=&$tdataexpenditure_statement;
$field_labels["expenditure_statement"] = &$fieldLabelsexpenditure_statement;
$fieldToolTips["expenditure_statement"] = &$fieldToolTipsexpenditure_statement;
$placeHolders["expenditure_statement"] = &$placeHoldersexpenditure_statement;
$page_titles["expenditure_statement"] = &$pageTitlesexpenditure_statement;

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

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



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



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











function createSqlQuery_expenditure_statement()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  	code,  	allocation,  	expenditure_up_to,  	expenditure_for_month,  	surcharge_for_month,  	net_expenditure,  	balance,  	ud,  	`user`,  	`month`,  	status,  	accounting_code";
$proto0["m_strFrom"] = "FROM expenditure_statement";
$proto0["m_strWhere"] = "status=\"Checking\"";
$proto0["m_strOrderBy"] = "";
	
		;
			$proto0["cipherer"] = null;
$proto2=array();
$proto2["m_sql"] = "status=\"Checking\"";
$proto2["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

$proto2["m_column"]=$obj;
$proto2["m_contained"] = array();
$proto2["m_strCase"] = "=\"Checking\"";
$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" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

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

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

$proto8["m_sql"] = "code";
$proto8["m_srcTableName"] = "expenditure_statement";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

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

$proto10["m_sql"] = "allocation";
$proto10["m_srcTableName"] = "expenditure_statement";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

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

$proto12["m_sql"] = "expenditure_up_to";
$proto12["m_srcTableName"] = "expenditure_statement";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

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

$proto14["m_sql"] = "expenditure_for_month";
$proto14["m_srcTableName"] = "expenditure_statement";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

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

$proto16["m_sql"] = "surcharge_for_month";
$proto16["m_srcTableName"] = "expenditure_statement";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

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

$proto18["m_sql"] = "net_expenditure";
$proto18["m_srcTableName"] = "expenditure_statement";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

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

$proto20["m_sql"] = "balance";
$proto20["m_srcTableName"] = "expenditure_statement";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "ud",
	"m_strTable" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

$proto22["m_sql"] = "ud";
$proto22["m_srcTableName"] = "expenditure_statement";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "user",
	"m_strTable" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

$proto24["m_sql"] = "`user`";
$proto24["m_srcTableName"] = "expenditure_statement";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

$proto0["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLField(array(
	"m_strName" => "month",
	"m_strTable" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

$proto26["m_sql"] = "`month`";
$proto26["m_srcTableName"] = "expenditure_statement";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

$proto0["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "status",
	"m_strTable" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

$proto28["m_sql"] = "status";
$proto28["m_srcTableName"] = "expenditure_statement";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto0["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLField(array(
	"m_strName" => "accounting_code",
	"m_strTable" => "expenditure_statement",
	"m_srcTableName" => "expenditure_statement"
));

$proto30["m_sql"] = "accounting_code";
$proto30["m_srcTableName"] = "expenditure_statement";
$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "";
$obj = new SQLFieldListItem($proto30);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto32=array();
$proto32["m_link"] = "SQLL_MAIN";
			$proto33=array();
$proto33["m_strName"] = "expenditure_statement";
$proto33["m_srcTableName"] = "expenditure_statement";
$proto33["m_columns"] = array();
$proto33["m_columns"][] = "id";
$proto33["m_columns"][] = "code";
$proto33["m_columns"][] = "allocation";
$proto33["m_columns"][] = "expenditure_up_to";
$proto33["m_columns"][] = "expenditure_for_month";
$proto33["m_columns"][] = "surcharge_for_month";
$proto33["m_columns"][] = "net_expenditure";
$proto33["m_columns"][] = "balance";
$proto33["m_columns"][] = "ud";
$proto33["m_columns"][] = "user";
$proto33["m_columns"][] = "month";
$proto33["m_columns"][] = "status";
$proto33["m_columns"][] = "accounting_code";
$obj = new SQLTable($proto33);

$proto32["m_table"] = $obj;
$proto32["m_sql"] = "expenditure_statement";
$proto32["m_alias"] = "";
$proto32["m_srcTableName"] = "expenditure_statement";
$proto34=array();
$proto34["m_sql"] = "";
$proto34["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_expenditure_statement = createSqlQuery_expenditure_statement();


	
		;

													

$tdataexpenditure_statement[".sqlquery"] = $queryData_expenditure_statement;



$tableEvents["expenditure_statement"] = new eventsBase;
$tdataexpenditure_statement[".hasEvents"] = false;

?>