<?php
require_once(getabspath("classes/cipherer.php"));
$tdatainf_gastos_detallado = array();
	$tdatainf_gastos_detallado[".NumberOfChars"] = 80; 
	$tdatainf_gastos_detallado[".ShortName"] = "inf_gastos_detallado";
	$tdatainf_gastos_detallado[".OwnerID"] = "";
	$tdatainf_gastos_detallado[".OriginalTable"] = "gasto";

//	field labels
$fieldLabelsinf_gastos_detallado = array();
if(mlang_getcurrentlang()=="Spanish")
{
	$fieldLabelsinf_gastos_detallado["Spanish"] = array();
	$fieldToolTipsinf_gastos_detallado["Spanish"] = array();
	$fieldLabelsinf_gastos_detallado["Spanish"]["idgasto"] = "Nº Gasto";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["idgasto"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["idmovimiento"] = "Nº Movimiento";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["idmovimiento"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["tipo"] = "Tipo";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["tipo"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["fecha"] = "Fecha";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["fecha"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["descripcion"] = "Descripción";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["descripcion"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["total"] = "Total";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["total"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["anulado"] = "Anulado";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["anulado"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["idcuenta"] = "Cuenta";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["idcuenta"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["importe"] = "Importe";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["importe"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["idtipo_cuenta"] = "Forma de pago";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["idtipo_cuenta"] = "";
	$fieldLabelsinf_gastos_detallado["Spanish"]["idconcepto"] = "Concepto";
	$fieldToolTipsinf_gastos_detallado["Spanish"]["idconcepto"] = "";
	if (count($fieldToolTipsinf_gastos_detallado["Spanish"]))
		$tdatainf_gastos_detallado[".isUseToolTips"] = true;
}
	
	
	$tdatainf_gastos_detallado[".NCSearch"] = true;



$tdatainf_gastos_detallado[".shortTableName"] = "inf_gastos_detallado";
$tdatainf_gastos_detallado[".nSecOptions"] = 0;
$tdatainf_gastos_detallado[".recsPerRowList"] = 1;
$tdatainf_gastos_detallado[".mainTableOwnerID"] = "";
$tdatainf_gastos_detallado[".moveNext"] = 1;
$tdatainf_gastos_detallado[".nType"] = 2;

$tdatainf_gastos_detallado[".strOriginalTableName"] = "gasto";




$tdatainf_gastos_detallado[".showAddInPopup"] = false;

$tdatainf_gastos_detallado[".showEditInPopup"] = false;

$tdatainf_gastos_detallado[".showViewInPopup"] = false;

$tdatainf_gastos_detallado[".fieldsForRegister"] = array();
	
$tdatainf_gastos_detallado[".listAjax"] = false;

	$tdatainf_gastos_detallado[".audit"] = false;

	$tdatainf_gastos_detallado[".locking"] = false;

$tdatainf_gastos_detallado[".listIcons"] = true;
$tdatainf_gastos_detallado[".edit"] = true;
$tdatainf_gastos_detallado[".inlineEdit"] = true;
$tdatainf_gastos_detallado[".inlineAdd"] = true;
$tdatainf_gastos_detallado[".view"] = true;

$tdatainf_gastos_detallado[".exportTo"] = true;

$tdatainf_gastos_detallado[".printFriendly"] = true;

$tdatainf_gastos_detallado[".delete"] = true;

$tdatainf_gastos_detallado[".showSimpleSearchOptions"] = false;

$tdatainf_gastos_detallado[".showSearchPanel"] = true;

if (isMobile())
	$tdatainf_gastos_detallado[".isUseAjaxSuggest"] = false;
else 
	$tdatainf_gastos_detallado[".isUseAjaxSuggest"] = true;


// button handlers file names

$tdatainf_gastos_detallado[".addPageEvents"] = false;

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




$tdatainf_gastos_detallado[".allSearchFields"] = array();

$tdatainf_gastos_detallado[".allSearchFields"][] = "idgasto";
$tdatainf_gastos_detallado[".allSearchFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".allSearchFields"][] = "tipo";
$tdatainf_gastos_detallado[".allSearchFields"][] = "fecha";
$tdatainf_gastos_detallado[".allSearchFields"][] = "descripcion";
$tdatainf_gastos_detallado[".allSearchFields"][] = "total";
$tdatainf_gastos_detallado[".allSearchFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".allSearchFields"][] = "importe";
$tdatainf_gastos_detallado[".allSearchFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".allSearchFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".googleLikeFields"][] = "idgasto";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "tipo";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "fecha";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "descripcion";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "total";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "anulado";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "importe";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".googleLikeFields"][] = "idconcepto";


$tdatainf_gastos_detallado[".advSearchFields"][] = "idgasto";
$tdatainf_gastos_detallado[".advSearchFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".advSearchFields"][] = "tipo";
$tdatainf_gastos_detallado[".advSearchFields"][] = "fecha";
$tdatainf_gastos_detallado[".advSearchFields"][] = "descripcion";
$tdatainf_gastos_detallado[".advSearchFields"][] = "total";
$tdatainf_gastos_detallado[".advSearchFields"][] = "anulado";
$tdatainf_gastos_detallado[".advSearchFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".advSearchFields"][] = "importe";
$tdatainf_gastos_detallado[".advSearchFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".advSearchFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".isTableType"] = "report";

$tdatainf_gastos_detallado[".reportGroupFields"] = true;
	



// Access doesn't support subqueries from the same table as main




$tstrOrderBy = "ORDER BY gasto.idgasto DESC";
if(strlen($tstrOrderBy) && strtolower(substr($tstrOrderBy,0,8))!="order by")
	$tstrOrderBy = "order by ".$tstrOrderBy;
$tdatainf_gastos_detallado[".strOrderBy"] = $tstrOrderBy;

$tdatainf_gastos_detallado[".orderindexes"] = array();
$tdatainf_gastos_detallado[".orderindexes"][] = array(1, (0 ? "ASC" : "DESC"), "gasto.idgasto");

$tdatainf_gastos_detallado[".sqlHead"] = "SELECT gasto.idgasto,  gasto.idmovimiento,  gasto.tipo,  gasto.fecha,  gasto.descripcion,  gasto.total,  gasto.anulado,  det_gasto.idcuenta,  det_gasto.importe,  det_gasto.idtipo_cuenta,  gasto.idconcepto";
$tdatainf_gastos_detallado[".sqlFrom"] = "FROM gasto  INNER JOIN det_gasto ON gasto.idgasto = det_gasto.idgasto";
$tdatainf_gastos_detallado[".sqlWhereExpr"] = "(gasto.anulado =\"NO\")";
$tdatainf_gastos_detallado[".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;
$tdatainf_gastos_detallado[".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;
$tdatainf_gastos_detallado[".arrGroupsPerPage"] = $arrGPP;

$tableKeysinf_gastos_detallado = array();
$tableKeysinf_gastos_detallado[] = "idgasto";
$tdatainf_gastos_detallado[".Keys"] = $tableKeysinf_gastos_detallado;

$tdatainf_gastos_detallado[".listFields"] = array();
$tdatainf_gastos_detallado[".listFields"][] = "idgasto";
$tdatainf_gastos_detallado[".listFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".listFields"][] = "tipo";
$tdatainf_gastos_detallado[".listFields"][] = "fecha";
$tdatainf_gastos_detallado[".listFields"][] = "descripcion";
$tdatainf_gastos_detallado[".listFields"][] = "total";
$tdatainf_gastos_detallado[".listFields"][] = "anulado";
$tdatainf_gastos_detallado[".listFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".listFields"][] = "importe";
$tdatainf_gastos_detallado[".listFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".listFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".viewFields"] = array();
$tdatainf_gastos_detallado[".viewFields"][] = "idgasto";
$tdatainf_gastos_detallado[".viewFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".viewFields"][] = "tipo";
$tdatainf_gastos_detallado[".viewFields"][] = "fecha";
$tdatainf_gastos_detallado[".viewFields"][] = "descripcion";
$tdatainf_gastos_detallado[".viewFields"][] = "total";
$tdatainf_gastos_detallado[".viewFields"][] = "anulado";
$tdatainf_gastos_detallado[".viewFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".viewFields"][] = "importe";
$tdatainf_gastos_detallado[".viewFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".viewFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".addFields"] = array();
$tdatainf_gastos_detallado[".addFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".addFields"][] = "tipo";
$tdatainf_gastos_detallado[".addFields"][] = "fecha";
$tdatainf_gastos_detallado[".addFields"][] = "descripcion";
$tdatainf_gastos_detallado[".addFields"][] = "total";
$tdatainf_gastos_detallado[".addFields"][] = "anulado";
$tdatainf_gastos_detallado[".addFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".inlineAddFields"] = array();
$tdatainf_gastos_detallado[".inlineAddFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "tipo";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "fecha";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "descripcion";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "total";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "anulado";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "importe";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".inlineAddFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".editFields"] = array();
$tdatainf_gastos_detallado[".editFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".editFields"][] = "tipo";
$tdatainf_gastos_detallado[".editFields"][] = "fecha";
$tdatainf_gastos_detallado[".editFields"][] = "descripcion";
$tdatainf_gastos_detallado[".editFields"][] = "total";
$tdatainf_gastos_detallado[".editFields"][] = "anulado";
$tdatainf_gastos_detallado[".editFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".inlineEditFields"] = array();
$tdatainf_gastos_detallado[".inlineEditFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "tipo";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "fecha";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "descripcion";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "total";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "anulado";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "importe";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".inlineEditFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".exportFields"] = array();
$tdatainf_gastos_detallado[".exportFields"][] = "idgasto";
$tdatainf_gastos_detallado[".exportFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".exportFields"][] = "tipo";
$tdatainf_gastos_detallado[".exportFields"][] = "fecha";
$tdatainf_gastos_detallado[".exportFields"][] = "descripcion";
$tdatainf_gastos_detallado[".exportFields"][] = "total";
$tdatainf_gastos_detallado[".exportFields"][] = "anulado";
$tdatainf_gastos_detallado[".exportFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".exportFields"][] = "importe";
$tdatainf_gastos_detallado[".exportFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".exportFields"][] = "idconcepto";

$tdatainf_gastos_detallado[".printFields"] = array();
$tdatainf_gastos_detallado[".printFields"][] = "idgasto";
$tdatainf_gastos_detallado[".printFields"][] = "idmovimiento";
$tdatainf_gastos_detallado[".printFields"][] = "tipo";
$tdatainf_gastos_detallado[".printFields"][] = "fecha";
$tdatainf_gastos_detallado[".printFields"][] = "descripcion";
$tdatainf_gastos_detallado[".printFields"][] = "total";
$tdatainf_gastos_detallado[".printFields"][] = "anulado";
$tdatainf_gastos_detallado[".printFields"][] = "idcuenta";
$tdatainf_gastos_detallado[".printFields"][] = "importe";
$tdatainf_gastos_detallado[".printFields"][] = "idtipo_cuenta";
$tdatainf_gastos_detallado[".printFields"][] = "idconcepto";

//	idgasto
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "idgasto";
	$fdata["GoodName"] = "idgasto";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Nº Gasto"; 
	$fdata["FieldType"] = 3;
	
		$fdata["AutoInc"] = true;
	
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idgasto"; 
		$fdata["FullName"] = "gasto.idgasto";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["idgasto"] = $fdata;
//	idmovimiento
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "idmovimiento";
	$fdata["GoodName"] = "idmovimiento";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Nº Movimiento"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idmovimiento"; 
		$fdata["FullName"] = "gasto.idmovimiento";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["idmovimiento"] = $fdata;
//	tipo
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "tipo";
	$fdata["GoodName"] = "tipo";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Tipo"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "tipo"; 
		$fdata["FullName"] = "gasto.tipo";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=10";
	
		
//	Begin validation
	$edata["validateAs"] = array();
		
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["tipo"] = $fdata;
//	fecha
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "fecha";
	$fdata["GoodName"] = "fecha";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Fecha"; 
	$fdata["FieldType"] = 7;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "fecha"; 
		$fdata["FullName"] = "gasto.fecha";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Short Date");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Date");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["fecha"] = $fdata;
//	descripcion
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "descripcion";
	$fdata["GoodName"] = "descripcion";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Descripción"; 
	$fdata["FieldType"] = 201;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "descripcion"; 
		$fdata["FullName"] = "gasto.descripcion";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text area");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
				$edata["nRows"] = 100;
			$edata["nCols"] = 200;
	
		
		
//	Begin validation
	$edata["validateAs"] = array();
		
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["descripcion"] = $fdata;
//	total
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "total";
	$fdata["GoodName"] = "total";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Total"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "total"; 
		$fdata["FullName"] = "gasto.total";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Number");
	
		
		
		
			
		
		$vdata["DecimalDigits"] = 0;
	
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["total"] = $fdata;
//	anulado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "anulado";
	$fdata["GoodName"] = "anulado";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Anulado"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "anulado"; 
		$fdata["FullName"] = "gasto.anulado";
	
		
		
				
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			$edata["EditParams"].= " maxlength=2";
	
		
//	Begin validation
	$edata["validateAs"] = array();
		
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["anulado"] = $fdata;
//	idcuenta
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "idcuenta";
	$fdata["GoodName"] = "idcuenta";
	$fdata["ownerTable"] = "det_gasto";
	$fdata["Label"] = "Cuenta"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idcuenta"; 
		$fdata["FullName"] = "det_gasto.idcuenta";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 2;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "idcuenta";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "denominacion";
	
		
	$edata["LookupTable"] = "cuenta";
	$edata["LookupOrderBy"] = "";
	
		
		
		
		
		
				
	
	
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["idcuenta"] = $fdata;
//	importe
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "importe";
	$fdata["GoodName"] = "importe";
	$fdata["ownerTable"] = "det_gasto";
	$fdata["Label"] = "Importe"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "importe"; 
		$fdata["FullName"] = "det_gasto.importe";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "Number");
	
		
		
		
			
		
		$vdata["DecimalDigits"] = 0;
	
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["importe"] = $fdata;
//	idtipo_cuenta
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "idtipo_cuenta";
	$fdata["GoodName"] = "idtipo_cuenta";
	$fdata["ownerTable"] = "det_gasto";
	$fdata["Label"] = "Forma de pago"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idtipo_cuenta"; 
		$fdata["FullName"] = "det_gasto.idtipo_cuenta";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Lookup wizard");
	
		
		
	
//	Begin Lookup settings
								$edata["LookupType"] = 2;
	$edata["freeInput"] = 0;
	$edata["autoCompleteFieldsOnEdit"] = 0;
	$edata["autoCompleteFields"] = array();
				
		
			
	$edata["LinkField"] = "idtipo_cuenta";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "nombre";
	
		
	$edata["LookupTable"] = "tipo_cuenta";
	$edata["LookupOrderBy"] = "";
	
		
		
		
		
		
				
	
	
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["idtipo_cuenta"] = $fdata;
//	idconcepto
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "idconcepto";
	$fdata["GoodName"] = "idconcepto";
	$fdata["ownerTable"] = "gasto";
	$fdata["Label"] = "Concepto"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		$fdata["bAddPage"] = true; 
	
		$fdata["bInlineAdd"] = true; 
	
		$fdata["bEditPage"] = true; 
	
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idconcepto"; 
		$fdata["FullName"] = "gasto.idconcepto";
	
		
		
				$fdata["FieldPermissions"] = true;
	
				$fdata["UploadFolder"] = "files";
		
//  Begin View Formats
	$fdata["ViewFormats"] = array();
	
	$vdata = array("ViewFormat" => "");
	
		
		
		
			
		
		
		
		
		
		
		$vdata["NeedEncode"] = true;
	
	$fdata["ViewFormats"]["report"] = $vdata;
//  End View Formats

//	Begin Edit Formats 	
	$fdata["EditFormats"] = array();
	
	$edata = array("EditFormat" => "Text field");
	
		
		
	
//	Begin Lookup settings
	//	End Lookup Settings

		
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		$edata["EditParams"] = "";
			
		
//	Begin validation
	$edata["validateAs"] = array();
				$edata["validateAs"]["basicValidate"][] = getJsValidatorName("Number");	
						
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_gastos_detallado["idconcepto"] = $fdata;

	
$tables_data["inf_gastos_detallado"]=&$tdatainf_gastos_detallado;
$field_labels["inf_gastos_detallado"] = &$fieldLabelsinf_gastos_detallado;
$fieldToolTips["inf_gastos_detallado"] = &$fieldToolTipsinf_gastos_detallado;

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

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

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










function createSqlQuery_inf_gastos_detallado()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "gasto.idgasto,  gasto.idmovimiento,  gasto.tipo,  gasto.fecha,  gasto.descripcion,  gasto.total,  gasto.anulado,  det_gasto.idcuenta,  det_gasto.importe,  det_gasto.idtipo_cuenta,  gasto.idconcepto";
$proto0["m_strFrom"] = "FROM gasto  INNER JOIN det_gasto ON gasto.idgasto = det_gasto.idgasto";
$proto0["m_strWhere"] = "(gasto.anulado =\"NO\")";
$proto0["m_strOrderBy"] = "ORDER BY gasto.idgasto DESC";
$proto0["m_strTail"] = "";
$proto0["cipherer"] = null;
$proto1=array();
$proto1["m_sql"] = "gasto.anulado =\"NO\"";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "anulado",
	"m_strTable" => "gasto"
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "=\"NO\"";
$proto1["m_havingmode"] = "0";
$proto1["m_inBrackets"] = "0";
$proto1["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto1);

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

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

$proto0["m_having"] = $obj;
$proto0["m_fieldlist"] = array();
						$proto5=array();
			$obj = new SQLField(array(
	"m_strName" => "idgasto",
	"m_strTable" => "gasto"
));

$proto5["m_expr"]=$obj;
$proto5["m_alias"] = "";
$obj = new SQLFieldListItem($proto5);

$proto0["m_fieldlist"][]=$obj;
						$proto7=array();
			$obj = new SQLField(array(
	"m_strName" => "idmovimiento",
	"m_strTable" => "gasto"
));

$proto7["m_expr"]=$obj;
$proto7["m_alias"] = "";
$obj = new SQLFieldListItem($proto7);

$proto0["m_fieldlist"][]=$obj;
						$proto9=array();
			$obj = new SQLField(array(
	"m_strName" => "tipo",
	"m_strTable" => "gasto"
));

$proto9["m_expr"]=$obj;
$proto9["m_alias"] = "";
$obj = new SQLFieldListItem($proto9);

$proto0["m_fieldlist"][]=$obj;
						$proto11=array();
			$obj = new SQLField(array(
	"m_strName" => "fecha",
	"m_strTable" => "gasto"
));

$proto11["m_expr"]=$obj;
$proto11["m_alias"] = "";
$obj = new SQLFieldListItem($proto11);

$proto0["m_fieldlist"][]=$obj;
						$proto13=array();
			$obj = new SQLField(array(
	"m_strName" => "descripcion",
	"m_strTable" => "gasto"
));

$proto13["m_expr"]=$obj;
$proto13["m_alias"] = "";
$obj = new SQLFieldListItem($proto13);

$proto0["m_fieldlist"][]=$obj;
						$proto15=array();
			$obj = new SQLField(array(
	"m_strName" => "total",
	"m_strTable" => "gasto"
));

$proto15["m_expr"]=$obj;
$proto15["m_alias"] = "";
$obj = new SQLFieldListItem($proto15);

$proto0["m_fieldlist"][]=$obj;
						$proto17=array();
			$obj = new SQLField(array(
	"m_strName" => "anulado",
	"m_strTable" => "gasto"
));

$proto17["m_expr"]=$obj;
$proto17["m_alias"] = "";
$obj = new SQLFieldListItem($proto17);

$proto0["m_fieldlist"][]=$obj;
						$proto19=array();
			$obj = new SQLField(array(
	"m_strName" => "idcuenta",
	"m_strTable" => "det_gasto"
));

$proto19["m_expr"]=$obj;
$proto19["m_alias"] = "";
$obj = new SQLFieldListItem($proto19);

$proto0["m_fieldlist"][]=$obj;
						$proto21=array();
			$obj = new SQLField(array(
	"m_strName" => "importe",
	"m_strTable" => "det_gasto"
));

$proto21["m_expr"]=$obj;
$proto21["m_alias"] = "";
$obj = new SQLFieldListItem($proto21);

$proto0["m_fieldlist"][]=$obj;
						$proto23=array();
			$obj = new SQLField(array(
	"m_strName" => "idtipo_cuenta",
	"m_strTable" => "det_gasto"
));

$proto23["m_expr"]=$obj;
$proto23["m_alias"] = "";
$obj = new SQLFieldListItem($proto23);

$proto0["m_fieldlist"][]=$obj;
						$proto25=array();
			$obj = new SQLField(array(
	"m_strName" => "idconcepto",
	"m_strTable" => "gasto"
));

$proto25["m_expr"]=$obj;
$proto25["m_alias"] = "";
$obj = new SQLFieldListItem($proto25);

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto27=array();
$proto27["m_link"] = "SQLL_MAIN";
			$proto28=array();
$proto28["m_strName"] = "gasto";
$proto28["m_columns"] = array();
$proto28["m_columns"][] = "idgasto";
$proto28["m_columns"][] = "idmovimiento";
$proto28["m_columns"][] = "tipo";
$proto28["m_columns"][] = "idconcepto";
$proto28["m_columns"][] = "fecha";
$proto28["m_columns"][] = "descripcion";
$proto28["m_columns"][] = "total";
$proto28["m_columns"][] = "anulado";
$obj = new SQLTable($proto28);

$proto27["m_table"] = $obj;
$proto27["m_alias"] = "";
$proto29=array();
$proto29["m_sql"] = "";
$proto29["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

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

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

$proto0["m_fromlist"][]=$obj;
												$proto31=array();
$proto31["m_link"] = "SQLL_INNERJOIN";
			$proto32=array();
$proto32["m_strName"] = "det_gasto";
$proto32["m_columns"] = array();
$proto32["m_columns"][] = "iddet_gasto";
$proto32["m_columns"][] = "idgasto";
$proto32["m_columns"][] = "idcuenta";
$proto32["m_columns"][] = "idtipo_cuenta";
$proto32["m_columns"][] = "importe";
$proto32["m_columns"][] = "anulado";
$obj = new SQLTable($proto32);

$proto31["m_table"] = $obj;
$proto31["m_alias"] = "";
$proto33=array();
$proto33["m_sql"] = "gasto.idgasto = det_gasto.idgasto";
$proto33["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "idgasto",
	"m_strTable" => "gasto"
));

$proto33["m_column"]=$obj;
$proto33["m_contained"] = array();
$proto33["m_strCase"] = "= det_gasto.idgasto";
$proto33["m_havingmode"] = "0";
$proto33["m_inBrackets"] = "0";
$proto33["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto33);

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
												$proto35=array();
						$obj = new SQLField(array(
	"m_strName" => "idgasto",
	"m_strTable" => "gasto"
));

$proto35["m_column"]=$obj;
$proto35["m_bAsc"] = 0;
$proto35["m_nColumn"] = 0;
$obj = new SQLOrderByItem($proto35);

$proto0["m_orderby"][]=$obj;					
$obj = new SQLQuery($proto0);

	return $obj;
}
$queryData_inf_gastos_detallado = createSqlQuery_inf_gastos_detallado();
											$tdatainf_gastos_detallado[".sqlquery"] = $queryData_inf_gastos_detallado;
	
if(isset($tdatainf_gastos_detallado["field2"])){
	$tdatainf_gastos_detallado["field2"]["LookupTable"] = "carscars_view";
	$tdatainf_gastos_detallado["field2"]["LookupOrderBy"] = "name";
	$tdatainf_gastos_detallado["field2"]["LookupType"] = 4;
	$tdatainf_gastos_detallado["field2"]["LinkField"] = "email";
	$tdatainf_gastos_detallado["field2"]["DisplayField"] = "name";
	$tdatainf_gastos_detallado[".hasCustomViewField"] = true;
}

$tableEvents["inf_gastos_detallado"] = new eventsBase;
$tdatainf_gastos_detallado[".hasEvents"] = false;

$cipherer = new RunnerCipherer("inf_gastos_detallado");

?>