<?php
$tdatadally_statistics = array();
$tdatadally_statistics[".searchableFields"] = array();
$tdatadally_statistics[".ShortName"] = "dally_statistics";
$tdatadally_statistics[".OwnerID"] = "";
$tdatadally_statistics[".OriginalTable"] = "dashboard_daily_stats";


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

//	field labels
$fieldLabelsdally_statistics = array();
$fieldToolTipsdally_statistics = array();
$pageTitlesdally_statistics = array();
$placeHoldersdally_statistics = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelsdally_statistics["English"] = array();
	$fieldToolTipsdally_statistics["English"] = array();
	$placeHoldersdally_statistics["English"] = array();
	$pageTitlesdally_statistics["English"] = array();
	$fieldLabelsdally_statistics["English"]["id"] = "Id";
	$fieldToolTipsdally_statistics["English"]["id"] = "";
	$placeHoldersdally_statistics["English"]["id"] = "";
	$fieldLabelsdally_statistics["English"]["stat_date"] = "Stat Date";
	$fieldToolTipsdally_statistics["English"]["stat_date"] = "";
	$placeHoldersdally_statistics["English"]["stat_date"] = "";
	$fieldLabelsdally_statistics["English"]["total_customers"] = "Total Customers";
	$fieldToolTipsdally_statistics["English"]["total_customers"] = "";
	$placeHoldersdally_statistics["English"]["total_customers"] = "";
	$fieldLabelsdally_statistics["English"]["total_loans"] = "Total Loans";
	$fieldToolTipsdally_statistics["English"]["total_loans"] = "";
	$placeHoldersdally_statistics["English"]["total_loans"] = "";
	$fieldLabelsdally_statistics["English"]["active_loans"] = "Active Loans";
	$fieldToolTipsdally_statistics["English"]["active_loans"] = "";
	$placeHoldersdally_statistics["English"]["active_loans"] = "";
	$fieldLabelsdally_statistics["English"]["closed_loans"] = "Closed Loans";
	$fieldToolTipsdally_statistics["English"]["closed_loans"] = "";
	$placeHoldersdally_statistics["English"]["closed_loans"] = "";
	$fieldLabelsdally_statistics["English"]["defaulted_loans"] = "Defaulted Loans";
	$fieldToolTipsdally_statistics["English"]["defaulted_loans"] = "";
	$placeHoldersdally_statistics["English"]["defaulted_loans"] = "";
	$fieldLabelsdally_statistics["English"]["total_loan_amount"] = "Total Loan Amount";
	$fieldToolTipsdally_statistics["English"]["total_loan_amount"] = "";
	$placeHoldersdally_statistics["English"]["total_loan_amount"] = "";
	$fieldLabelsdally_statistics["English"]["total_payable"] = "Total Payable";
	$fieldToolTipsdally_statistics["English"]["total_payable"] = "";
	$placeHoldersdally_statistics["English"]["total_payable"] = "";
	$fieldLabelsdally_statistics["English"]["total_collected"] = "Total Collected";
	$fieldToolTipsdally_statistics["English"]["total_collected"] = "";
	$placeHoldersdally_statistics["English"]["total_collected"] = "";
	$fieldLabelsdally_statistics["English"]["outstanding_balance"] = "Outstanding Balance";
	$fieldToolTipsdally_statistics["English"]["outstanding_balance"] = "";
	$placeHoldersdally_statistics["English"]["outstanding_balance"] = "";
	$fieldLabelsdally_statistics["English"]["today_issued_loans"] = "Today Issued Loans";
	$fieldToolTipsdally_statistics["English"]["today_issued_loans"] = "";
	$placeHoldersdally_statistics["English"]["today_issued_loans"] = "";
	$fieldLabelsdally_statistics["English"]["today_issued_amount"] = "Today Issued Amount";
	$fieldToolTipsdally_statistics["English"]["today_issued_amount"] = "";
	$placeHoldersdally_statistics["English"]["today_issued_amount"] = "";
	$fieldLabelsdally_statistics["English"]["today_collections_count"] = "Today Collections Count";
	$fieldToolTipsdally_statistics["English"]["today_collections_count"] = "";
	$placeHoldersdally_statistics["English"]["today_collections_count"] = "";
	$fieldLabelsdally_statistics["English"]["today_collections_amount"] = "Today Collections Amount";
	$fieldToolTipsdally_statistics["English"]["today_collections_amount"] = "";
	$placeHoldersdally_statistics["English"]["today_collections_amount"] = "";
	$fieldLabelsdally_statistics["English"]["created_at"] = "Created At";
	$fieldToolTipsdally_statistics["English"]["created_at"] = "";
	$placeHoldersdally_statistics["English"]["created_at"] = "";
	if (count($fieldToolTipsdally_statistics["English"]))
		$tdatadally_statistics[".isUseToolTips"] = true;
}


	$tdatadally_statistics[".NCSearch"] = true;

	$tdatadally_statistics[".ChartRefreshTime"] = 0;


$tdatadally_statistics[".shortTableName"] = "dally_statistics";
$tdatadally_statistics[".nSecOptions"] = 0;

$tdatadally_statistics[".mainTableOwnerID"] = "";
$tdatadally_statistics[".entityType"] = 3;
$tdatadally_statistics[".connId"] = "easy_cash_at_localhost";


$tdatadally_statistics[".strOriginalTableName"] = "dashboard_daily_stats";

	



$tdatadally_statistics[".showAddInPopup"] = false;

$tdatadally_statistics[".showEditInPopup"] = false;

$tdatadally_statistics[".showViewInPopup"] = false;

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


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

	$tdatadally_statistics[".audit"] = false;

	$tdatadally_statistics[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdatadally_statistics[".isUseAjaxSuggest"] = true;




																								

$tdatadally_statistics[".ajaxCodeSnippetAdded"] = false;

$tdatadally_statistics[".buttonsAdded"] = false;

$tdatadally_statistics[".addPageEvents"] = false;

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


$tdatadally_statistics[".badgeColor"] = "E67349";


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

$tdatadally_statistics[".googleLikeFields"] = array();
$tdatadally_statistics[".googleLikeFields"][] = "id";
$tdatadally_statistics[".googleLikeFields"][] = "stat_date";
$tdatadally_statistics[".googleLikeFields"][] = "total_customers";
$tdatadally_statistics[".googleLikeFields"][] = "total_loans";
$tdatadally_statistics[".googleLikeFields"][] = "active_loans";
$tdatadally_statistics[".googleLikeFields"][] = "closed_loans";
$tdatadally_statistics[".googleLikeFields"][] = "defaulted_loans";
$tdatadally_statistics[".googleLikeFields"][] = "total_loan_amount";
$tdatadally_statistics[".googleLikeFields"][] = "total_payable";
$tdatadally_statistics[".googleLikeFields"][] = "total_collected";
$tdatadally_statistics[".googleLikeFields"][] = "outstanding_balance";
$tdatadally_statistics[".googleLikeFields"][] = "today_issued_loans";
$tdatadally_statistics[".googleLikeFields"][] = "today_issued_amount";
$tdatadally_statistics[".googleLikeFields"][] = "today_collections_count";
$tdatadally_statistics[".googleLikeFields"][] = "today_collections_amount";
$tdatadally_statistics[".googleLikeFields"][] = "created_at";



$tdatadally_statistics[".tableType"] = "chart";

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

$tdatadally_statistics[".nPrinterSplitRecords"] = 40;

$tdatadally_statistics[".geocodingEnabled"] = false;



// chart settings
$tdatadally_statistics[".chartType"] = "2DColumn";
// end of chart settings








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

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


$tdatadally_statistics[".sqlHead"] = "SELECT id,  	stat_date,  	total_customers,  	total_loans,  	active_loans,  	closed_loans,  	defaulted_loans,  	total_loan_amount,  	total_payable,  	total_collected,  	outstanding_balance,  	today_issued_loans,  	today_issued_amount,  	today_collections_count,  	today_collections_amount,  	created_at";
$tdatadally_statistics[".sqlFrom"] = "FROM dashboard_daily_stats";
$tdatadally_statistics[".sqlWhereExpr"] = "";
$tdatadally_statistics[".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;
$tdatadally_statistics[".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;
$tdatadally_statistics[".arrGroupsPerPage"] = $arrGPP;

$tdatadally_statistics[".highlightSearchResults"] = true;

$tableKeysdally_statistics = array();
$tableKeysdally_statistics[] = "id";
$tdatadally_statistics[".Keys"] = $tableKeysdally_statistics;


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




//	id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "id";
	$fdata["GoodName"] = "id";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","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"]["chart"] = $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


	$tdatadally_statistics["id"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "id";
//	stat_date
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "stat_date";
	$fdata["GoodName"] = "stat_date";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","stat_date");
	$fdata["FieldType"] = 7;

	
	
	
			

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

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

	
	
				$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"]["chart"] = $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["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatadally_statistics["stat_date"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "stat_date";
//	total_customers
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "total_customers";
	$fdata["GoodName"] = "total_customers";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","total_customers");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["total_customers"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "total_customers";
//	total_loans
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "total_loans";
	$fdata["GoodName"] = "total_loans";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","total_loans");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["total_loans"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "total_loans";
//	active_loans
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "active_loans";
	$fdata["GoodName"] = "active_loans";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","active_loans");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["active_loans"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "active_loans";
//	closed_loans
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "closed_loans";
	$fdata["GoodName"] = "closed_loans";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","closed_loans");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["closed_loans"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "closed_loans";
//	defaulted_loans
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "defaulted_loans";
	$fdata["GoodName"] = "defaulted_loans";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","defaulted_loans");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["defaulted_loans"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "defaulted_loans";
//	total_loan_amount
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "total_loan_amount";
	$fdata["GoodName"] = "total_loan_amount";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","total_loan_amount");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatadally_statistics["total_loan_amount"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "total_loan_amount";
//	total_payable
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "total_payable";
	$fdata["GoodName"] = "total_payable";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","total_payable");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatadally_statistics["total_payable"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "total_payable";
//	total_collected
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "total_collected";
	$fdata["GoodName"] = "total_collected";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","total_collected");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatadally_statistics["total_collected"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "total_collected";
//	outstanding_balance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "outstanding_balance";
	$fdata["GoodName"] = "outstanding_balance";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","outstanding_balance");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "outstanding_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"]["chart"] = $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


	$tdatadally_statistics["outstanding_balance"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "outstanding_balance";
//	today_issued_loans
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "today_issued_loans";
	$fdata["GoodName"] = "today_issued_loans";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","today_issued_loans");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["today_issued_loans"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "today_issued_loans";
//	today_issued_amount
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "today_issued_amount";
	$fdata["GoodName"] = "today_issued_amount";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","today_issued_amount");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatadally_statistics["today_issued_amount"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "today_issued_amount";
//	today_collections_count
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "today_collections_count";
	$fdata["GoodName"] = "today_collections_count";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","today_collections_count");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

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

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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


	$tdatadally_statistics["today_collections_count"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "today_collections_count";
//	today_collections_amount
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "today_collections_amount";
	$fdata["GoodName"] = "today_collections_amount";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","today_collections_amount");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatadally_statistics["today_collections_amount"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "today_collections_amount";
//	created_at
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "created_at";
	$fdata["GoodName"] = "created_at";
	$fdata["ownerTable"] = "dashboard_daily_stats";
	$fdata["Label"] = GetFieldLabel("Dally_Statistics","created_at");
	$fdata["FieldType"] = 135;

	
	
	
			

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

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

	
	
				$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"]["chart"] = $vdata;
//  End View Formats

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

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

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


	
	



	
	
	
	
			$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();
	
	
	//	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["filterMultiSelect"] = 0;
			$fdata["filterFormat"] = "Values list";
		$fdata["showCollapsed"] = false;

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

		$fdata["filterBy"] = 0;

	

	
	
//end of Filters settings


	$tdatadally_statistics["created_at"] = $fdata;
		$tdatadally_statistics[".searchableFields"][] = "created_at";

$tdatadally_statistics[".chartLabelField"] = "stat_date";
$tdatadally_statistics[".chartSeries"] = array();
$tdatadally_statistics[".chartSeries"][] = array( 
	"field" => "total_customers",
	"total" => ""
);
	$tdatadally_statistics[".chartXml"] = '<chart>
		<attr value="tables">
			<attr value="0">Dally Statistics</attr>
		</attr>
		<attr value="chart_type">
			<attr value="type">2d_column</attr>
		</attr>

		<attr value="parameters">';
	$tdatadally_statistics[".chartXml"] .= '<attr value="0">
			<attr value="name">total_customers</attr>';
	$tdatadally_statistics[".chartXml"] .= '</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="1">
		<attr value="name">stat_date</attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '</attr>
			<attr value="appearance">';


	$tdatadally_statistics[".chartXml"] .= '<attr value="head">'.xmlencode("Dally Statistics").'</attr>
<attr value="foot">'.xmlencode("Legend Title").'</attr>
<attr value="y_axis_label">'.xmlencode("total_customers").'</attr>


<attr value="slegend">true</attr>
<attr value="sgrid">false</attr>
<attr value="sname">true</attr>
<attr value="sval">true</attr>
<attr value="sanim">true</attr>
<attr value="sstacked">false</attr>
<attr value="slog">false</attr>
<attr value="aqua">None</attr>
<attr value="cview">Column</attr>
<attr value="is3d">0</attr>
<attr value="isstacked">0</attr>
<attr value="linestyle">0</attr>
<attr value="autoupdate">0</attr>
<attr value="autoupmin">60</attr>';
$tdatadally_statistics[".chartXml"] .= '</attr>

<attr value="fields">';
	$tdatadally_statistics[".chartXml"] .= '<attr value="0">
		<attr value="name">id</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","id")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="1">
		<attr value="name">stat_date</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","stat_date")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="2">
		<attr value="name">total_customers</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","total_customers")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="3">
		<attr value="name">total_loans</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","total_loans")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="4">
		<attr value="name">active_loans</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","active_loans")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="5">
		<attr value="name">closed_loans</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","closed_loans")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="6">
		<attr value="name">defaulted_loans</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","defaulted_loans")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="7">
		<attr value="name">total_loan_amount</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","total_loan_amount")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="8">
		<attr value="name">total_payable</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","total_payable")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="9">
		<attr value="name">total_collected</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","total_collected")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="10">
		<attr value="name">outstanding_balance</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","outstanding_balance")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="11">
		<attr value="name">today_issued_loans</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","today_issued_loans")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="12">
		<attr value="name">today_issued_amount</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","today_issued_amount")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="13">
		<attr value="name">today_collections_count</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","today_collections_count")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="14">
		<attr value="name">today_collections_amount</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","today_collections_amount")).'</attr>
		<attr value="search"></attr>
	</attr>';
	$tdatadally_statistics[".chartXml"] .= '<attr value="15">
		<attr value="name">created_at</attr>
		<attr value="label">'.xmlencode(GetFieldLabel("Dally_Statistics","created_at")).'</attr>
		<attr value="search"></attr>
	</attr>';
$tdatadally_statistics[".chartXml"] .= '</attr>


<attr value="settings">
<attr value="name">Dally Statistics</attr>
<attr value="short_table_name">dally_statistics</attr>
</attr>

</chart>';

$tables_data["Dally Statistics"]=&$tdatadally_statistics;
$field_labels["Dally_Statistics"] = &$fieldLabelsdally_statistics;
$fieldToolTips["Dally_Statistics"] = &$fieldToolTipsdally_statistics;
$placeHolders["Dally_Statistics"] = &$placeHoldersdally_statistics;
$page_titles["Dally_Statistics"] = &$pageTitlesdally_statistics;

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

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



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



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











function createSqlQuery_dally_statistics()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  	stat_date,  	total_customers,  	total_loans,  	active_loans,  	closed_loans,  	defaulted_loans,  	total_loan_amount,  	total_payable,  	total_collected,  	outstanding_balance,  	today_issued_loans,  	today_issued_amount,  	today_collections_count,  	today_collections_amount,  	created_at";
$proto0["m_strFrom"] = "FROM dashboard_daily_stats";
$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" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

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

$proto0["m_fieldlist"][]=$obj;
						$proto8=array();
			$obj = new SQLField(array(
	"m_strName" => "stat_date",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto8["m_sql"] = "stat_date";
$proto8["m_srcTableName"] = "Dally Statistics";
$proto8["m_expr"]=$obj;
$proto8["m_alias"] = "";
$obj = new SQLFieldListItem($proto8);

$proto0["m_fieldlist"][]=$obj;
						$proto10=array();
			$obj = new SQLField(array(
	"m_strName" => "total_customers",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto10["m_sql"] = "total_customers";
$proto10["m_srcTableName"] = "Dally Statistics";
$proto10["m_expr"]=$obj;
$proto10["m_alias"] = "";
$obj = new SQLFieldListItem($proto10);

$proto0["m_fieldlist"][]=$obj;
						$proto12=array();
			$obj = new SQLField(array(
	"m_strName" => "total_loans",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto12["m_sql"] = "total_loans";
$proto12["m_srcTableName"] = "Dally Statistics";
$proto12["m_expr"]=$obj;
$proto12["m_alias"] = "";
$obj = new SQLFieldListItem($proto12);

$proto0["m_fieldlist"][]=$obj;
						$proto14=array();
			$obj = new SQLField(array(
	"m_strName" => "active_loans",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto14["m_sql"] = "active_loans";
$proto14["m_srcTableName"] = "Dally Statistics";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

$proto0["m_fieldlist"][]=$obj;
						$proto16=array();
			$obj = new SQLField(array(
	"m_strName" => "closed_loans",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto16["m_sql"] = "closed_loans";
$proto16["m_srcTableName"] = "Dally Statistics";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

$proto0["m_fieldlist"][]=$obj;
						$proto18=array();
			$obj = new SQLField(array(
	"m_strName" => "defaulted_loans",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto18["m_sql"] = "defaulted_loans";
$proto18["m_srcTableName"] = "Dally Statistics";
$proto18["m_expr"]=$obj;
$proto18["m_alias"] = "";
$obj = new SQLFieldListItem($proto18);

$proto0["m_fieldlist"][]=$obj;
						$proto20=array();
			$obj = new SQLField(array(
	"m_strName" => "total_loan_amount",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto20["m_sql"] = "total_loan_amount";
$proto20["m_srcTableName"] = "Dally Statistics";
$proto20["m_expr"]=$obj;
$proto20["m_alias"] = "";
$obj = new SQLFieldListItem($proto20);

$proto0["m_fieldlist"][]=$obj;
						$proto22=array();
			$obj = new SQLField(array(
	"m_strName" => "total_payable",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto22["m_sql"] = "total_payable";
$proto22["m_srcTableName"] = "Dally Statistics";
$proto22["m_expr"]=$obj;
$proto22["m_alias"] = "";
$obj = new SQLFieldListItem($proto22);

$proto0["m_fieldlist"][]=$obj;
						$proto24=array();
			$obj = new SQLField(array(
	"m_strName" => "total_collected",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto24["m_sql"] = "total_collected";
$proto24["m_srcTableName"] = "Dally Statistics";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

$proto0["m_fieldlist"][]=$obj;
						$proto26=array();
			$obj = new SQLField(array(
	"m_strName" => "outstanding_balance",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto26["m_sql"] = "outstanding_balance";
$proto26["m_srcTableName"] = "Dally Statistics";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

$proto0["m_fieldlist"][]=$obj;
						$proto28=array();
			$obj = new SQLField(array(
	"m_strName" => "today_issued_loans",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto28["m_sql"] = "today_issued_loans";
$proto28["m_srcTableName"] = "Dally Statistics";
$proto28["m_expr"]=$obj;
$proto28["m_alias"] = "";
$obj = new SQLFieldListItem($proto28);

$proto0["m_fieldlist"][]=$obj;
						$proto30=array();
			$obj = new SQLField(array(
	"m_strName" => "today_issued_amount",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto30["m_sql"] = "today_issued_amount";
$proto30["m_srcTableName"] = "Dally Statistics";
$proto30["m_expr"]=$obj;
$proto30["m_alias"] = "";
$obj = new SQLFieldListItem($proto30);

$proto0["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLField(array(
	"m_strName" => "today_collections_count",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto32["m_sql"] = "today_collections_count";
$proto32["m_srcTableName"] = "Dally Statistics";
$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "";
$obj = new SQLFieldListItem($proto32);

$proto0["m_fieldlist"][]=$obj;
						$proto34=array();
			$obj = new SQLField(array(
	"m_strName" => "today_collections_amount",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto34["m_sql"] = "today_collections_amount";
$proto34["m_srcTableName"] = "Dally Statistics";
$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "";
$obj = new SQLFieldListItem($proto34);

$proto0["m_fieldlist"][]=$obj;
						$proto36=array();
			$obj = new SQLField(array(
	"m_strName" => "created_at",
	"m_strTable" => "dashboard_daily_stats",
	"m_srcTableName" => "Dally Statistics"
));

$proto36["m_sql"] = "created_at";
$proto36["m_srcTableName"] = "Dally Statistics";
$proto36["m_expr"]=$obj;
$proto36["m_alias"] = "";
$obj = new SQLFieldListItem($proto36);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto38=array();
$proto38["m_link"] = "SQLL_MAIN";
			$proto39=array();
$proto39["m_strName"] = "dashboard_daily_stats";
$proto39["m_srcTableName"] = "Dally Statistics";
$proto39["m_columns"] = array();
$proto39["m_columns"][] = "id";
$proto39["m_columns"][] = "stat_date";
$proto39["m_columns"][] = "total_customers";
$proto39["m_columns"][] = "total_loans";
$proto39["m_columns"][] = "active_loans";
$proto39["m_columns"][] = "closed_loans";
$proto39["m_columns"][] = "defaulted_loans";
$proto39["m_columns"][] = "total_loan_amount";
$proto39["m_columns"][] = "total_payable";
$proto39["m_columns"][] = "total_collected";
$proto39["m_columns"][] = "outstanding_balance";
$proto39["m_columns"][] = "today_issued_loans";
$proto39["m_columns"][] = "today_issued_amount";
$proto39["m_columns"][] = "today_collections_count";
$proto39["m_columns"][] = "today_collections_amount";
$proto39["m_columns"][] = "created_at";
$obj = new SQLTable($proto39);

$proto38["m_table"] = $obj;
$proto38["m_sql"] = "dashboard_daily_stats";
$proto38["m_alias"] = "";
$proto38["m_srcTableName"] = "Dally Statistics";
$proto40=array();
$proto40["m_sql"] = "";
$proto40["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

	return $obj;
}
$queryData_dally_statistics = createSqlQuery_dally_statistics();


	
		;

																

$tdatadally_statistics[".sqlquery"] = $queryData_dally_statistics;



$tableEvents["Dally Statistics"] = new eventsBase;
$tdatadally_statistics[".hasEvents"] = false;

?>