<?php
$tdatasalary_slips = array();
$tdatasalary_slips[".searchableFields"] = array();
$tdatasalary_slips[".ShortName"] = "salary_slips";
$tdatasalary_slips[".OwnerID"] = "";
$tdatasalary_slips[".OriginalTable"] = "salary_voucher";


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

//	field labels
$fieldLabelssalary_slips = array();
$fieldToolTipssalary_slips = array();
$pageTitlessalary_slips = array();
$placeHolderssalary_slips = array();

if(mlang_getcurrentlang()=="English")
{
	$fieldLabelssalary_slips["English"] = array();
	$fieldToolTipssalary_slips["English"] = array();
	$placeHolderssalary_slips["English"] = array();
	$pageTitlessalary_slips["English"] = array();
	$fieldLabelssalary_slips["English"]["id"] = "Id";
	$fieldToolTipssalary_slips["English"]["id"] = "";
	$placeHolderssalary_slips["English"]["id"] = "";
	$fieldLabelssalary_slips["English"]["emp_no"] = "Emp No";
	$fieldToolTipssalary_slips["English"]["emp_no"] = "";
	$placeHolderssalary_slips["English"]["emp_no"] = "";
	$fieldLabelssalary_slips["English"]["employer_name"] = "Employer Name";
	$fieldToolTipssalary_slips["English"]["employer_name"] = "";
	$placeHolderssalary_slips["English"]["employer_name"] = "";
	$fieldLabelssalary_slips["English"]["month"] = "Month";
	$fieldToolTipssalary_slips["English"]["month"] = "";
	$placeHolderssalary_slips["English"]["month"] = "";
	$fieldLabelssalary_slips["English"]["date"] = "Date";
	$fieldToolTipssalary_slips["English"]["date"] = "";
	$placeHolderssalary_slips["English"]["date"] = "";
	$fieldLabelssalary_slips["English"]["basic"] = "Basic";
	$fieldToolTipssalary_slips["English"]["basic"] = "";
	$placeHolderssalary_slips["English"]["basic"] = "";
	$fieldLabelssalary_slips["English"]["over_time_allowance"] = "Over Time Allowance";
	$fieldToolTipssalary_slips["English"]["over_time_allowance"] = "";
	$placeHolderssalary_slips["English"]["over_time_allowance"] = "";
	$fieldLabelssalary_slips["English"]["meal_allowance"] = "Meal Allowance";
	$fieldToolTipssalary_slips["English"]["meal_allowance"] = "";
	$placeHolderssalary_slips["English"]["meal_allowance"] = "";
	$fieldLabelssalary_slips["English"]["special_allowance_1"] = "Special Allowance";
	$fieldToolTipssalary_slips["English"]["special_allowance_1"] = "";
	$placeHolderssalary_slips["English"]["special_allowance_1"] = "";
	$fieldLabelssalary_slips["English"]["budgetary_relief_allowance"] = "Budgetary Relief Allowance";
	$fieldToolTipssalary_slips["English"]["budgetary_relief_allowance"] = "";
	$placeHolderssalary_slips["English"]["budgetary_relief_allowance"] = "";
	$fieldLabelssalary_slips["English"]["e_p_f"] = "E P F";
	$fieldToolTipssalary_slips["English"]["e_p_f"] = "";
	$placeHolderssalary_slips["English"]["e_p_f"] = "";
	$fieldLabelssalary_slips["English"]["details"] = "Details";
	$fieldToolTipssalary_slips["English"]["details"] = "";
	$placeHolderssalary_slips["English"]["details"] = "";
	$fieldLabelssalary_slips["English"]["year"] = "Year";
	$fieldToolTipssalary_slips["English"]["year"] = "";
	$placeHolderssalary_slips["English"]["year"] = "";
	$fieldLabelssalary_slips["English"]["Total_earnings"] = "Total Earnings";
	$fieldToolTipssalary_slips["English"]["Total_earnings"] = "";
	$placeHolderssalary_slips["English"]["Total_earnings"] = "";
	$fieldLabelssalary_slips["English"]["Total_loan_installments"] = "Total Loan Installments";
	$fieldToolTipssalary_slips["English"]["Total_loan_installments"] = "";
	$placeHolderssalary_slips["English"]["Total_loan_installments"] = "";
	$fieldLabelssalary_slips["English"]["Total_salary_advance"] = "Total Salary Advance";
	$fieldToolTipssalary_slips["English"]["Total_salary_advance"] = "";
	$placeHolderssalary_slips["English"]["Total_salary_advance"] = "";
	$fieldLabelssalary_slips["English"]["Net_salary"] = "Net Salary";
	$fieldToolTipssalary_slips["English"]["Net_salary"] = "";
	$placeHolderssalary_slips["English"]["Net_salary"] = "";
	$fieldLabelssalary_slips["English"]["Total_Deduction"] = "Total Deduction";
	$fieldToolTipssalary_slips["English"]["Total_Deduction"] = "";
	$placeHolderssalary_slips["English"]["Total_Deduction"] = "";
	$fieldLabelssalary_slips["English"]["emp_id"] = "Emp Id";
	$fieldToolTipssalary_slips["English"]["emp_id"] = "";
	$placeHolderssalary_slips["English"]["emp_id"] = "";
	if (count($fieldToolTipssalary_slips["English"]))
		$tdatasalary_slips[".isUseToolTips"] = true;
}


	$tdatasalary_slips[".NCSearch"] = true;



$tdatasalary_slips[".shortTableName"] = "salary_slips";
$tdatasalary_slips[".nSecOptions"] = 0;

$tdatasalary_slips[".mainTableOwnerID"] = "";
$tdatasalary_slips[".entityType"] = 1;
$tdatasalary_slips[".connId"] = "test2_at_localhost";


$tdatasalary_slips[".strOriginalTableName"] = "salary_voucher";

	



$tdatasalary_slips[".showAddInPopup"] = false;

$tdatasalary_slips[".showEditInPopup"] = false;

$tdatasalary_slips[".showViewInPopup"] = false;

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


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

	$tdatasalary_slips[".audit"] = true;

	$tdatasalary_slips[".locking"] = false;


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

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

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

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



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




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

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

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

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



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

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

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

$tdatasalary_slips[".isUseAjaxSuggest"] = true;

$tdatasalary_slips[".rowHighlite"] = true;



																																																			

$tdatasalary_slips[".ajaxCodeSnippetAdded"] = false;

$tdatasalary_slips[".buttonsAdded"] = false;

$tdatasalary_slips[".addPageEvents"] = false;

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


$tdatasalary_slips[".badgeColor"] = "00C2C5";


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

$tdatasalary_slips[".googleLikeFields"] = array();
$tdatasalary_slips[".googleLikeFields"][] = "id";
$tdatasalary_slips[".googleLikeFields"][] = "emp_no";
$tdatasalary_slips[".googleLikeFields"][] = "employer_name";
$tdatasalary_slips[".googleLikeFields"][] = "month";
$tdatasalary_slips[".googleLikeFields"][] = "year";
$tdatasalary_slips[".googleLikeFields"][] = "date";
$tdatasalary_slips[".googleLikeFields"][] = "basic";
$tdatasalary_slips[".googleLikeFields"][] = "over_time_allowance";
$tdatasalary_slips[".googleLikeFields"][] = "meal_allowance";
$tdatasalary_slips[".googleLikeFields"][] = "special_allowance_1";
$tdatasalary_slips[".googleLikeFields"][] = "budgetary_relief_allowance";
$tdatasalary_slips[".googleLikeFields"][] = "e_p_f";
$tdatasalary_slips[".googleLikeFields"][] = "details";
$tdatasalary_slips[".googleLikeFields"][] = "emp_id";
$tdatasalary_slips[".googleLikeFields"][] = "Total_earnings";
$tdatasalary_slips[".googleLikeFields"][] = "Total_loan_installments";
$tdatasalary_slips[".googleLikeFields"][] = "Total_salary_advance";
$tdatasalary_slips[".googleLikeFields"][] = "Total_Deduction";
$tdatasalary_slips[".googleLikeFields"][] = "Net_salary";



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

$tdatasalary_slips[".printerPageOrientation"] = 0;
$tdatasalary_slips[".isPrinterPageFitToPage"] = 0;
$tdatasalary_slips[".nPrinterPageScale"] = 100;

$tdatasalary_slips[".nPrinterSplitRecords"] = 40;

$tdatasalary_slips[".geocodingEnabled"] = false;










$tdatasalary_slips[".pageSize"] = 20;

$tdatasalary_slips[".warnLeavingPages"] = true;



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

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


$tdatasalary_slips[".sqlHead"] = "SELECT id,  	emp_no,  	employer_name,  	`month`,  `year`,  	`date`,  	basic,  	over_time_allowance,  	meal_allowance,  	special_allowance_1,  	budgetary_relief_allowance,  	e_p_f,  	details,emp_id,      ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance),0) as Total_earnings,      ifnull(pur.st1,0) as Total_loan_installments ,      ifnull(purk.st2,0) as Total_salary_advance ,  ifnull(pur.st1,0) +   ifnull(purk.st2,0) + 	salary_voucher.e_p_f  as \"Total_Deduction\",      ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance- e_p_f ) -  IFNULL(pur.st1,0)  -   IFNULL(purk.st2,0),0) as Net_salary";
$tdatasalary_slips[".sqlFrom"] = "FROM salary_voucher    LEFT JOIN (select pay_slip_link,sum(amount) as st1 from payment_of_loan_installments  group by pay_slip_link ) as pur on salary_voucher.id=pur.pay_slip_link    LEFT JOIN (select salary_v_link,sum(amount) as st2 from `salary_advance`  group by salary_v_link ) as purk on salary_voucher.id=purk.salary_v_link";
$tdatasalary_slips[".sqlWhereExpr"] = "";
$tdatasalary_slips[".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;
$tdatasalary_slips[".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;
$tdatasalary_slips[".arrGroupsPerPage"] = $arrGPP;

$tdatasalary_slips[".highlightSearchResults"] = true;

$tableKeyssalary_slips = array();
$tableKeyssalary_slips[] = "id";
$tdatasalary_slips[".Keys"] = $tableKeyssalary_slips;


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




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


	$tdatasalary_slips["id"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "id";
//	emp_no
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "emp_no";
	$fdata["GoodName"] = "emp_no";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","emp_no");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

	
	
				$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"]["export"] = $vdata;
	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	

// Begin Lookup settings
				$edata["LookupType"] = 2;
	$edata["LookupTable"] = "attendance11";
			$edata["autoCompleteFieldsOnEdit"] = 1;
	$edata["autoCompleteFields"] = array();
		$edata["autoCompleteFields"][] = array('masterF'=>"basic", 'lookupF'=>"salary");
	$edata["autoCompleteFields"][] = array('masterF'=>"over_time_allowance", 'lookupF'=>"OT");
	$edata["autoCompleteFields"][] = array('masterF'=>"meal_allowance", 'lookupF'=>"meal_allowance");
	$edata["autoCompleteFields"][] = array('masterF'=>"special_allowance_1", 'lookupF'=>"special_allowance_1");
	$edata["autoCompleteFields"][] = array('masterF'=>"budgetary_relief_allowance", 'lookupF'=>"budgetary_relief_allowance");
	$edata["autoCompleteFields"][] = array('masterF'=>"e_p_f", 'lookupF'=>"e_P_f");
	$edata["autoCompleteFields"][] = array('masterF'=>"details", 'lookupF'=>"details");
	$edata["LCType"] = 1;

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

	

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

	
		$edata["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "month", "lookup" => "month" );

	
	

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

	//	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"] = "attendance11";
			$edata["autoCompleteFieldsOnEdit"] = 1;
	$edata["autoCompleteFields"] = array();
		$edata["autoCompleteFields"][] = array('masterF'=>"employer_name", 'lookupF'=>"fullname");
	$edata["autoCompleteFields"][] = array('masterF'=>"basic", 'lookupF'=>"salary");
	$edata["autoCompleteFields"][] = array('masterF'=>"over_time_allowance", 'lookupF'=>"OT");
	$edata["autoCompleteFields"][] = array('masterF'=>"meal_allowance", 'lookupF'=>"meal_allowance");
	$edata["autoCompleteFields"][] = array('masterF'=>"special_allowance_1", 'lookupF'=>"special_allowance_1");
	$edata["autoCompleteFields"][] = array('masterF'=>"budgetary_relief_allowance", 'lookupF'=>"budgetary_relief_allowance");
	$edata["autoCompleteFields"][] = array('masterF'=>"e_p_f", 'lookupF'=>"e_P_f");
	$edata["autoCompleteFields"][] = array('masterF'=>"details", 'lookupF'=>"details");
	$edata["LCType"] = 0;

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

	

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

	
		$edata["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "month", "lookup" => "month" );

	
	

	
	
		$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";
			$edata["validateAs"]["basicValidate"][] = "DenyDuplicated";
	$edata["validateAs"]["customMessages"]["DenyDuplicated"] = array("message" => "Value %value% already exists", "messageType" => "Text");

		$edata["autoUpdatable"] = true;

	//	End validation

	
			
	
		$edata["denyDuplicates"] = true;

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

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

	

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

	
		$edata["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "month", "lookup" => "month" );

	
	

	
	
		$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";
			$edata["validateAs"]["basicValidate"][] = "DenyDuplicated";
	$edata["validateAs"]["customMessages"]["DenyDuplicated"] = array("message" => "Value %value% already exists", "messageType" => "Text");

		$edata["autoUpdatable"] = true;

	//	End validation

	
			
	
		$edata["denyDuplicates"] = true;

	
	$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


	$tdatasalary_slips["emp_no"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "emp_no";
//	employer_name
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "employer_name";
	$fdata["GoodName"] = "employer_name";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","employer_name");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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" => "Readonly");

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

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

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


	$tdatasalary_slips["employer_name"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "employer_name";
//	month
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "month";
	$fdata["GoodName"] = "month";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","month");
	$fdata["FieldType"] = 3;

	
	
	
			

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

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

	
	
				$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"]["export"] = $vdata;
	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

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

	
			
	
	
	
	$fdata["EditFormats"]["edit"] = $edata;
	$edata = array("EditFormat" => "Lookup wizard");

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


	
	

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

	
			$edata["LookupUnique"] = true;

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

	

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

	
		$edata["UseCategory"] = true;
	$edata["categoryFields"] = array();
	$edata["categoryFields"][] = array( "main" => "year", "lookup" => "year" );

	
	
				//dependent dropdowns @deprecated data ?
	$edata["DependentLookups"] = array();
	$edata["DependentLookups"][] = "emp_no";
				$edata["DependentLookups"][] = "emp_no";
				$edata["DependentLookups"][] = "emp_no";

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


	$tdatasalary_slips["month"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "month";
//	year
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "year";
	$fdata["GoodName"] = "year";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","year");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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"]["export"] = $vdata;
	$vdata = array("ViewFormat" => "");

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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

	
	
	
	
	
	
	
	
	
	
	
		
	
		$vdata["NeedEncode"] = true;

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

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

	
			$edata["LookupUnique"] = true;

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

	

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

	
	
	
	
				//dependent dropdowns @deprecated data ?
	$edata["DependentLookups"] = array();
	$edata["DependentLookups"][] = "month";

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

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


	
	

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

	
			$edata["LookupUnique"] = true;

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

	

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

	
	
	
	
				//dependent dropdowns @deprecated data ?
	$edata["DependentLookups"] = array();
	$edata["DependentLookups"][] = "month";

	
	
		$edata["SelectSize"] = 1;

// End Lookup Settings


		$edata["IsRequired"] = true;

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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

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

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


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


	$tdatasalary_slips["year"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "year";
//	date
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "date";
	$fdata["GoodName"] = "date";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","date");
	$fdata["FieldType"] = 135;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "`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"]["view"] = $vdata;
//  End View Formats

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

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

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


	
	



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

		$edata["maxNumberOfFiles"] = 1;

	
	
	
	
	
	
		$edata["controlWidth"] = 200;

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

	//	End validation

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


	$tdatasalary_slips["date"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "date";
//	basic
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "basic";
	$fdata["GoodName"] = "basic";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","basic");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatasalary_slips["basic"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "basic";
//	over_time_allowance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "over_time_allowance";
	$fdata["GoodName"] = "over_time_allowance";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","over_time_allowance");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatasalary_slips["over_time_allowance"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "over_time_allowance";
//	meal_allowance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "meal_allowance";
	$fdata["GoodName"] = "meal_allowance";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","meal_allowance");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatasalary_slips["meal_allowance"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "meal_allowance";
//	special_allowance_1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "special_allowance_1";
	$fdata["GoodName"] = "special_allowance_1";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","special_allowance_1");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatasalary_slips["special_allowance_1"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "special_allowance_1";
//	budgetary_relief_allowance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "budgetary_relief_allowance";
	$fdata["GoodName"] = "budgetary_relief_allowance";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","budgetary_relief_allowance");
	$fdata["FieldType"] = 14;

	
	
	
			

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

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

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


	$tdatasalary_slips["budgetary_relief_allowance"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "budgetary_relief_allowance";
//	e_p_f
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "e_p_f";
	$fdata["GoodName"] = "e_p_f";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","e_p_f");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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=50";

		$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


	$tdatasalary_slips["e_p_f"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "e_p_f";
//	details
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 13;
	$fdata["strName"] = "details";
	$fdata["GoodName"] = "details";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","details");
	$fdata["FieldType"] = 200;

	
	
	
			

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

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

	
	
				$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


	$tdatasalary_slips["details"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "details";
//	emp_id
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 14;
	$fdata["strName"] = "emp_id";
	$fdata["GoodName"] = "emp_id";
	$fdata["ownerTable"] = "salary_voucher";
	$fdata["Label"] = GetFieldLabel("salary_slips","emp_id");
	$fdata["FieldType"] = 200;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "emp_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["acceptFileTypes"] = ".+$";
		$edata["acceptFileTypesHtml"] = "";

		$edata["maxNumberOfFiles"] = 1;

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

		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=50";

		$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


	$tdatasalary_slips["emp_id"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "emp_id";
//	Total_earnings
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 15;
	$fdata["strName"] = "Total_earnings";
	$fdata["GoodName"] = "Total_earnings";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("salary_slips","Total_earnings");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance),0)";

	
	
				$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


	$tdatasalary_slips["Total_earnings"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "Total_earnings";
//	Total_loan_installments
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 16;
	$fdata["strName"] = "Total_loan_installments";
	$fdata["GoodName"] = "Total_loan_installments";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("salary_slips","Total_loan_installments");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "ifnull(pur.st1,0)";

	
	
				$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


	$tdatasalary_slips["Total_loan_installments"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "Total_loan_installments";
//	Total_salary_advance
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 17;
	$fdata["strName"] = "Total_salary_advance";
	$fdata["GoodName"] = "Total_salary_advance";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("salary_slips","Total_salary_advance");
	$fdata["FieldType"] = 14;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "ifnull(purk.st2,0)";

	
	
				$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


	$tdatasalary_slips["Total_salary_advance"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "Total_salary_advance";
//	Total_Deduction
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 18;
	$fdata["strName"] = "Total_Deduction";
	$fdata["GoodName"] = "Total_Deduction";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("salary_slips","Total_Deduction");
	$fdata["FieldType"] = 5;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "ifnull(pur.st1,0) +   ifnull(purk.st2,0) + 	salary_voucher.e_p_f";

	
	
				$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


	$tdatasalary_slips["Total_Deduction"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "Total_Deduction";
//	Net_salary
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 19;
	$fdata["strName"] = "Net_salary";
	$fdata["GoodName"] = "Net_salary";
	$fdata["ownerTable"] = "";
	$fdata["Label"] = GetFieldLabel("salary_slips","Net_salary");
	$fdata["FieldType"] = 5;

	
	
	
			

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

	
		$fdata["isSQLExpression"] = true;
	$fdata["FullName"] = "ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance- e_p_f ) -  IFNULL(pur.st1,0)  -   IFNULL(purk.st2,0),0)";

	
	
				$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


	$tdatasalary_slips["Net_salary"] = $fdata;
		$tdatasalary_slips[".searchableFields"][] = "Net_salary";


$tables_data["salary_slips"]=&$tdatasalary_slips;
$field_labels["salary_slips"] = &$fieldLabelssalary_slips;
$fieldToolTips["salary_slips"] = &$fieldToolTipssalary_slips;
$placeHolders["salary_slips"] = &$placeHolderssalary_slips;
$page_titles["salary_slips"] = &$pageTitlessalary_slips;

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

		$dIndex = 0;
	$detailsParam = array();
	$detailsParam["dDataSourceTable"]="loans status";
		$detailsParam["dOriginalTable"] = "loans";



		
		$detailsParam["dType"]=PAGE_LIST;
	$detailsParam["dShortTable"] = "loans_status";
	$detailsParam["dCaptionTable"] = GetTableCaption("loans_status");
	$detailsParam["masterKeys"] =array();
	$detailsParam["detailKeys"] =array();


		
	$detailsTablesData["salary_slips"][$dIndex] = $detailsParam;

	
		$detailsTablesData["salary_slips"][$dIndex]["masterKeys"] = array();

	$detailsTablesData["salary_slips"][$dIndex]["masterKeys"][]="emp_id";

				$detailsTablesData["salary_slips"][$dIndex]["detailKeys"] = array();

	$detailsTablesData["salary_slips"][$dIndex]["detailKeys"][]="emp_id";

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



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



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











function createSqlQuery_salary_slips()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "id,  	emp_no,  	employer_name,  	`month`,  `year`,  	`date`,  	basic,  	over_time_allowance,  	meal_allowance,  	special_allowance_1,  	budgetary_relief_allowance,  	e_p_f,  	details,emp_id,      ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance),0) as Total_earnings,      ifnull(pur.st1,0) as Total_loan_installments ,      ifnull(purk.st2,0) as Total_salary_advance ,  ifnull(pur.st1,0) +   ifnull(purk.st2,0) + 	salary_voucher.e_p_f  as \"Total_Deduction\",      ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance- e_p_f ) -  IFNULL(pur.st1,0)  -   IFNULL(purk.st2,0),0) as Net_salary";
$proto0["m_strFrom"] = "FROM salary_voucher    LEFT JOIN (select pay_slip_link,sum(amount) as st1 from payment_of_loan_installments  group by pay_slip_link ) as pur on salary_voucher.id=pur.pay_slip_link    LEFT JOIN (select salary_v_link,sum(amount) as st2 from `salary_advance`  group by salary_v_link ) as purk on salary_voucher.id=purk.salary_v_link";
$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" => "salary_voucher",
	"m_srcTableName" => "salary_slips"
));

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

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

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

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

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

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

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

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

$proto14["m_sql"] = "`year`";
$proto14["m_srcTableName"] = "salary_slips";
$proto14["m_expr"]=$obj;
$proto14["m_alias"] = "";
$obj = new SQLFieldListItem($proto14);

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

$proto16["m_sql"] = "`date`";
$proto16["m_srcTableName"] = "salary_slips";
$proto16["m_expr"]=$obj;
$proto16["m_alias"] = "";
$obj = new SQLFieldListItem($proto16);

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

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

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

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

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

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

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

$proto24["m_sql"] = "special_allowance_1";
$proto24["m_srcTableName"] = "salary_slips";
$proto24["m_expr"]=$obj;
$proto24["m_alias"] = "";
$obj = new SQLFieldListItem($proto24);

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

$proto26["m_sql"] = "budgetary_relief_allowance";
$proto26["m_srcTableName"] = "salary_slips";
$proto26["m_expr"]=$obj;
$proto26["m_alias"] = "";
$obj = new SQLFieldListItem($proto26);

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto32=array();
			$obj = new SQLField(array(
	"m_strName" => "emp_id",
	"m_strTable" => "salary_voucher",
	"m_srcTableName" => "salary_slips"
));

$proto32["m_sql"] = "emp_id";
$proto32["m_srcTableName"] = "salary_slips";
$proto32["m_expr"]=$obj;
$proto32["m_alias"] = "";
$obj = new SQLFieldListItem($proto32);

$proto0["m_fieldlist"][]=$obj;
						$proto34=array();
			$proto35=array();
$proto35["m_functiontype"] = "SQLF_CUSTOM";
$proto35["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "(basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance)"
));

$proto35["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "0"
));

$proto35["m_arguments"][]=$obj;
$proto35["m_strFunctionName"] = "ifnull";
$obj = new SQLFunctionCall($proto35);

$proto34["m_sql"] = "ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance),0)";
$proto34["m_srcTableName"] = "salary_slips";
$proto34["m_expr"]=$obj;
$proto34["m_alias"] = "Total_earnings";
$obj = new SQLFieldListItem($proto34);

$proto0["m_fieldlist"][]=$obj;
						$proto38=array();
			$proto39=array();
$proto39["m_functiontype"] = "SQLF_CUSTOM";
$proto39["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "pur.st1"
));

$proto39["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "0"
));

$proto39["m_arguments"][]=$obj;
$proto39["m_strFunctionName"] = "ifnull";
$obj = new SQLFunctionCall($proto39);

$proto38["m_sql"] = "ifnull(pur.st1,0)";
$proto38["m_srcTableName"] = "salary_slips";
$proto38["m_expr"]=$obj;
$proto38["m_alias"] = "Total_loan_installments";
$obj = new SQLFieldListItem($proto38);

$proto0["m_fieldlist"][]=$obj;
						$proto42=array();
			$proto43=array();
$proto43["m_functiontype"] = "SQLF_CUSTOM";
$proto43["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "purk.st2"
));

$proto43["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "0"
));

$proto43["m_arguments"][]=$obj;
$proto43["m_strFunctionName"] = "ifnull";
$obj = new SQLFunctionCall($proto43);

$proto42["m_sql"] = "ifnull(purk.st2,0)";
$proto42["m_srcTableName"] = "salary_slips";
$proto42["m_expr"]=$obj;
$proto42["m_alias"] = "Total_salary_advance";
$obj = new SQLFieldListItem($proto42);

$proto0["m_fieldlist"][]=$obj;
						$proto46=array();
			$obj = new SQLNonParsed(array(
	"m_sql" => "ifnull(pur.st1,0) +   ifnull(purk.st2,0) + 	salary_voucher.e_p_f"
));

$proto46["m_sql"] = "ifnull(pur.st1,0) +   ifnull(purk.st2,0) + 	salary_voucher.e_p_f";
$proto46["m_srcTableName"] = "salary_slips";
$proto46["m_expr"]=$obj;
$proto46["m_alias"] = "Total_Deduction";
$obj = new SQLFieldListItem($proto46);

$proto0["m_fieldlist"][]=$obj;
						$proto48=array();
			$proto49=array();
$proto49["m_functiontype"] = "SQLF_CUSTOM";
$proto49["m_arguments"] = array();
						$obj = new SQLNonParsed(array(
	"m_sql" => "(basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance- e_p_f ) -  IFNULL(pur.st1,0)  -   IFNULL(purk.st2,0)"
));

$proto49["m_arguments"][]=$obj;
						$obj = new SQLNonParsed(array(
	"m_sql" => "0"
));

$proto49["m_arguments"][]=$obj;
$proto49["m_strFunctionName"] = "ifnull";
$obj = new SQLFunctionCall($proto49);

$proto48["m_sql"] = "ifnull((basic + over_time_allowance + meal_allowance + special_allowance_1 + budgetary_relief_allowance- e_p_f ) -  IFNULL(pur.st1,0)  -   IFNULL(purk.st2,0),0)";
$proto48["m_srcTableName"] = "salary_slips";
$proto48["m_expr"]=$obj;
$proto48["m_alias"] = "Net_salary";
$obj = new SQLFieldListItem($proto48);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto52=array();
$proto52["m_link"] = "SQLL_MAIN";
			$proto53=array();
$proto53["m_strName"] = "salary_voucher";
$proto53["m_srcTableName"] = "salary_slips";
$proto53["m_columns"] = array();
$proto53["m_columns"][] = "id";
$proto53["m_columns"][] = "emp_no";
$proto53["m_columns"][] = "employer_name";
$proto53["m_columns"][] = "month";
$proto53["m_columns"][] = "date";
$proto53["m_columns"][] = "basic";
$proto53["m_columns"][] = "over_time_allowance";
$proto53["m_columns"][] = "meal_allowance";
$proto53["m_columns"][] = "special_allowance_1";
$proto53["m_columns"][] = "budgetary_relief_allowance";
$proto53["m_columns"][] = "e_p_f";
$proto53["m_columns"][] = "details";
$proto53["m_columns"][] = "year";
$proto53["m_columns"][] = "user";
$proto53["m_columns"][] = "emp_id";
$obj = new SQLTable($proto53);

$proto52["m_table"] = $obj;
$proto52["m_sql"] = "salary_voucher";
$proto52["m_alias"] = "";
$proto52["m_srcTableName"] = "salary_slips";
$proto54=array();
$proto54["m_sql"] = "";
$proto54["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto56=array();
$proto56["m_link"] = "SQLL_LEFTJOIN";
			$proto57=array();
$proto57["m_strHead"] = "select";
$proto57["m_strFieldList"] = "pay_slip_link,sum(amount) as st1";
$proto57["m_strFrom"] = "from payment_of_loan_installments";
$proto57["m_strWhere"] = "";
$proto57["m_strOrderBy"] = "";
	
		;
			$proto57["cipherer"] = null;
$proto59=array();
$proto59["m_sql"] = "";
$proto59["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto57["m_having"] = $obj;
$proto57["m_fieldlist"] = array();
						$proto63=array();
			$obj = new SQLField(array(
	"m_strName" => "pay_slip_link",
	"m_strTable" => "payment_of_loan_installments",
	"m_srcTableName" => "salary_slips"
));

$proto63["m_sql"] = "pay_slip_link";
$proto63["m_srcTableName"] = "salary_slips";
$proto63["m_expr"]=$obj;
$proto63["m_alias"] = "";
$obj = new SQLFieldListItem($proto63);

$proto57["m_fieldlist"][]=$obj;
						$proto65=array();
			$proto66=array();
$proto66["m_functiontype"] = "SQLF_SUM";
$proto66["m_arguments"] = array();
						$obj = new SQLField(array(
	"m_strName" => "amount",
	"m_strTable" => "payment_of_loan_installments",
	"m_srcTableName" => "salary_slips"
));

$proto66["m_arguments"][]=$obj;
$proto66["m_strFunctionName"] = "sum";
$obj = new SQLFunctionCall($proto66);

$proto65["m_sql"] = "sum(amount)";
$proto65["m_srcTableName"] = "salary_slips";
$proto65["m_expr"]=$obj;
$proto65["m_alias"] = "st1";
$obj = new SQLFieldListItem($proto65);

$proto57["m_fieldlist"][]=$obj;
$proto57["m_fromlist"] = array();
												$proto68=array();
$proto68["m_link"] = "SQLL_MAIN";
			$proto69=array();
$proto69["m_strName"] = "payment_of_loan_installments";
$proto69["m_srcTableName"] = "salary_slips";
$proto69["m_columns"] = array();
$proto69["m_columns"][] = "id";
$proto69["m_columns"][] = "loan";
$proto69["m_columns"][] = "emp_id";
$proto69["m_columns"][] = "month";
$proto69["m_columns"][] = "loan_status";
$proto69["m_columns"][] = "amount";
$proto69["m_columns"][] = "user";
$proto69["m_columns"][] = "date";
$proto69["m_columns"][] = "pay_slip_link";
$obj = new SQLTable($proto69);

$proto68["m_table"] = $obj;
$proto68["m_sql"] = "payment_of_loan_installments";
$proto68["m_alias"] = "";
$proto68["m_srcTableName"] = "salary_slips";
$proto70=array();
$proto70["m_sql"] = "";
$proto70["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto57["m_fromlist"][]=$obj;
$proto57["m_groupby"] = array();
												$proto72=array();
						$obj = new SQLField(array(
	"m_strName" => "pay_slip_link",
	"m_strTable" => "payment_of_loan_installments",
	"m_srcTableName" => "salary_slips"
));

$proto72["m_column"]=$obj;
$obj = new SQLGroupByItem($proto72);

$proto57["m_groupby"][]=$obj;
$proto57["m_orderby"] = array();
$proto57["m_srcTableName"]="salary_slips";		
$obj = new SQLQuery($proto57);

$proto56["m_table"] = $obj;
$proto56["m_sql"] = "LEFT JOIN (select pay_slip_link,sum(amount) as st1 from payment_of_loan_installments  group by pay_slip_link ) as pur on salary_voucher.id=pur.pay_slip_link";
$proto56["m_alias"] = "pur";
$proto56["m_srcTableName"] = "salary_slips";
$proto74=array();
$proto74["m_sql"] = "salary_voucher.id=pur.pay_slip_link";
$proto74["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "salary_voucher",
	"m_srcTableName" => "salary_slips"
));

$proto74["m_column"]=$obj;
$proto74["m_contained"] = array();
$proto74["m_strCase"] = "=pur.pay_slip_link";
$proto74["m_havingmode"] = false;
$proto74["m_inBrackets"] = false;
$proto74["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto74);

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

$proto0["m_fromlist"][]=$obj;
												$proto76=array();
$proto76["m_link"] = "SQLL_LEFTJOIN";
			$proto77=array();
$proto77["m_strHead"] = "select";
$proto77["m_strFieldList"] = "salary_v_link,sum(amount) as st2";
$proto77["m_strFrom"] = "from `salary_advance`";
$proto77["m_strWhere"] = "";
$proto77["m_strOrderBy"] = "";
	
		;
			$proto77["cipherer"] = null;
$proto79=array();
$proto79["m_sql"] = "";
$proto79["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

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

$proto77["m_having"] = $obj;
$proto77["m_fieldlist"] = array();
						$proto83=array();
			$obj = new SQLField(array(
	"m_strName" => "salary_v_link",
	"m_strTable" => "salary_advance",
	"m_srcTableName" => "salary_slips"
));

$proto83["m_sql"] = "salary_v_link";
$proto83["m_srcTableName"] = "salary_slips";
$proto83["m_expr"]=$obj;
$proto83["m_alias"] = "";
$obj = new SQLFieldListItem($proto83);

$proto77["m_fieldlist"][]=$obj;
						$proto85=array();
			$proto86=array();
$proto86["m_functiontype"] = "SQLF_SUM";
$proto86["m_arguments"] = array();
						$obj = new SQLField(array(
	"m_strName" => "amount",
	"m_strTable" => "salary_advance",
	"m_srcTableName" => "salary_slips"
));

$proto86["m_arguments"][]=$obj;
$proto86["m_strFunctionName"] = "sum";
$obj = new SQLFunctionCall($proto86);

$proto85["m_sql"] = "sum(amount)";
$proto85["m_srcTableName"] = "salary_slips";
$proto85["m_expr"]=$obj;
$proto85["m_alias"] = "st2";
$obj = new SQLFieldListItem($proto85);

$proto77["m_fieldlist"][]=$obj;
$proto77["m_fromlist"] = array();
												$proto88=array();
$proto88["m_link"] = "SQLL_MAIN";
			$proto89=array();
$proto89["m_strName"] = "salary_advance";
$proto89["m_srcTableName"] = "salary_slips";
$proto89["m_columns"] = array();
$proto89["m_columns"][] = "ID0";
$proto89["m_columns"][] = "emp_id";
$proto89["m_columns"][] = "date";
$proto89["m_columns"][] = "month";
$proto89["m_columns"][] = "amount";
$proto89["m_columns"][] = "user";
$proto89["m_columns"][] = "salary_v_link";
$proto89["m_columns"][] = "out_let";
$obj = new SQLTable($proto89);

$proto88["m_table"] = $obj;
$proto88["m_sql"] = "`salary_advance`";
$proto88["m_alias"] = "";
$proto88["m_srcTableName"] = "salary_slips";
$proto90=array();
$proto90["m_sql"] = "";
$proto90["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto77["m_fromlist"][]=$obj;
$proto77["m_groupby"] = array();
												$proto92=array();
						$obj = new SQLField(array(
	"m_strName" => "salary_v_link",
	"m_strTable" => "salary_advance",
	"m_srcTableName" => "salary_slips"
));

$proto92["m_column"]=$obj;
$obj = new SQLGroupByItem($proto92);

$proto77["m_groupby"][]=$obj;
$proto77["m_orderby"] = array();
$proto77["m_srcTableName"]="salary_slips";		
$obj = new SQLQuery($proto77);

$proto76["m_table"] = $obj;
$proto76["m_sql"] = "LEFT JOIN (select salary_v_link,sum(amount) as st2 from `salary_advance`  group by salary_v_link ) as purk on salary_voucher.id=purk.salary_v_link";
$proto76["m_alias"] = "purk";
$proto76["m_srcTableName"] = "salary_slips";
$proto94=array();
$proto94["m_sql"] = "salary_voucher.id=purk.salary_v_link";
$proto94["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "id",
	"m_strTable" => "salary_voucher",
	"m_srcTableName" => "salary_slips"
));

$proto94["m_column"]=$obj;
$proto94["m_contained"] = array();
$proto94["m_strCase"] = "=purk.salary_v_link";
$proto94["m_havingmode"] = false;
$proto94["m_inBrackets"] = false;
$proto94["m_useAlias"] = false;
$obj = new SQLLogicalExpr($proto94);

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

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

	return $obj;
}
$queryData_salary_slips = createSqlQuery_salary_slips();


	
		;

																			

$tdatasalary_slips[".sqlquery"] = $queryData_salary_slips;



$tableEvents["salary_slips"] = new eventsBase;
$tdatasalary_slips[".hasEvents"] = false;

?>