<?php
require_once(getabspath("classes/cipherer.php"));
$tdatainf_mov_caja = array();
	$tdatainf_mov_caja[".NumberOfChars"] = 80; 
	$tdatainf_mov_caja[".ShortName"] = "inf_mov_caja";
	$tdatainf_mov_caja[".OwnerID"] = "";
	$tdatainf_mov_caja[".OriginalTable"] = "movimiento_caja";

//	field labels
$fieldLabelsinf_mov_caja = array();
if(mlang_getcurrentlang()=="Spanish")
{
	$fieldLabelsinf_mov_caja["Spanish"] = array();
	$fieldToolTipsinf_mov_caja["Spanish"] = array();
	$fieldLabelsinf_mov_caja["Spanish"]["idmovimiento"] = "Nº";
	$fieldToolTipsinf_mov_caja["Spanish"]["idmovimiento"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["idusuario"] = "Usuario";
	$fieldToolTipsinf_mov_caja["Spanish"]["idusuario"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["estado"] = "Estado";
	$fieldToolTipsinf_mov_caja["Spanish"]["estado"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["idcuenta"] = "Cuenta";
	$fieldToolTipsinf_mov_caja["Spanish"]["idcuenta"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["fecha_apertura"] = "Fecha Apertura";
	$fieldToolTipsinf_mov_caja["Spanish"]["fecha_apertura"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["monto_apertura"] = "Monto Apertura";
	$fieldToolTipsinf_mov_caja["Spanish"]["monto_apertura"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["monto_recaudado"] = "Monto Recaudado";
	$fieldToolTipsinf_mov_caja["Spanish"]["monto_recaudado"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["monto_gastado"] = "Monto Gastado";
	$fieldToolTipsinf_mov_caja["Spanish"]["monto_gastado"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["fecha_cierre"] = "Fecha Cierre";
	$fieldToolTipsinf_mov_caja["Spanish"]["fecha_cierre"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["monto_cierre"] = "Monto Cierre";
	$fieldToolTipsinf_mov_caja["Spanish"]["monto_cierre"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["estado1"] = "Estado";
	$fieldToolTipsinf_mov_caja["Spanish"]["estado1"] = "";
	$fieldLabelsinf_mov_caja["Spanish"]["observacion"] = "Observacion";
	$fieldToolTipsinf_mov_caja["Spanish"]["observacion"] = "";
	if (count($fieldToolTipsinf_mov_caja["Spanish"]))
		$tdatainf_mov_caja[".isUseToolTips"] = true;
}
	
	
	$tdatainf_mov_caja[".NCSearch"] = true;



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

$tdatainf_mov_caja[".strOriginalTableName"] = "movimiento_caja";




$tdatainf_mov_caja[".showAddInPopup"] = false;

$tdatainf_mov_caja[".showEditInPopup"] = false;

$tdatainf_mov_caja[".showViewInPopup"] = false;

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

	$tdatainf_mov_caja[".audit"] = false;

	$tdatainf_mov_caja[".locking"] = false;

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

$tdatainf_mov_caja[".exportTo"] = true;

$tdatainf_mov_caja[".printFriendly"] = true;

$tdatainf_mov_caja[".delete"] = true;

$tdatainf_mov_caja[".showSimpleSearchOptions"] = false;

$tdatainf_mov_caja[".showSearchPanel"] = true;

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


// button handlers file names

$tdatainf_mov_caja[".addPageEvents"] = false;

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




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

$tdatainf_mov_caja[".allSearchFields"][] = "idmovimiento";
$tdatainf_mov_caja[".allSearchFields"][] = "idusuario";
$tdatainf_mov_caja[".allSearchFields"][] = "estado";
$tdatainf_mov_caja[".allSearchFields"][] = "idcuenta";
$tdatainf_mov_caja[".allSearchFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".allSearchFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".allSearchFields"][] = "observacion";

$tdatainf_mov_caja[".googleLikeFields"][] = "idmovimiento";
$tdatainf_mov_caja[".googleLikeFields"][] = "idusuario";
$tdatainf_mov_caja[".googleLikeFields"][] = "estado";
$tdatainf_mov_caja[".googleLikeFields"][] = "idcuenta";
$tdatainf_mov_caja[".googleLikeFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".googleLikeFields"][] = "monto_apertura";
$tdatainf_mov_caja[".googleLikeFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".googleLikeFields"][] = "monto_gastado";
$tdatainf_mov_caja[".googleLikeFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".googleLikeFields"][] = "monto_cierre";
$tdatainf_mov_caja[".googleLikeFields"][] = "estado1";
$tdatainf_mov_caja[".googleLikeFields"][] = "observacion";


$tdatainf_mov_caja[".advSearchFields"][] = "idmovimiento";
$tdatainf_mov_caja[".advSearchFields"][] = "idusuario";
$tdatainf_mov_caja[".advSearchFields"][] = "estado";
$tdatainf_mov_caja[".advSearchFields"][] = "idcuenta";
$tdatainf_mov_caja[".advSearchFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".advSearchFields"][] = "monto_apertura";
$tdatainf_mov_caja[".advSearchFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".advSearchFields"][] = "monto_gastado";
$tdatainf_mov_caja[".advSearchFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".advSearchFields"][] = "monto_cierre";
$tdatainf_mov_caja[".advSearchFields"][] = "estado1";
$tdatainf_mov_caja[".advSearchFields"][] = "observacion";

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

$tdatainf_mov_caja[".reportGroupFields"] = true;
	



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




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

$tdatainf_mov_caja[".orderindexes"] = array();
$tdatainf_mov_caja[".orderindexes"][] = array(1, (0 ? "ASC" : "DESC"), "movimiento_caja.idmovimiento");

$tdatainf_mov_caja[".sqlHead"] = "SELECT movimiento_caja.idmovimiento,  movimiento_caja.idusuario,  movimiento_caja.estado,  det_movimiento.idcuenta,  det_movimiento.fecha_apertura,  det_movimiento.monto_apertura,  det_movimiento.monto_recaudado,  det_movimiento.monto_gastado,  det_movimiento.fecha_cierre,  det_movimiento.monto_cierre,  det_movimiento.estado AS estado1,  movimiento_caja.observacion";
$tdatainf_mov_caja[".sqlFrom"] = "FROM movimiento_caja  INNER JOIN det_movimiento ON movimiento_caja.idmovimiento = det_movimiento.idmovimiento";
$tdatainf_mov_caja[".sqlWhereExpr"] = "";
$tdatainf_mov_caja[".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_mov_caja[".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_mov_caja[".arrGroupsPerPage"] = $arrGPP;

$tableKeysinf_mov_caja = array();
$tableKeysinf_mov_caja[] = "idmovimiento";
$tdatainf_mov_caja[".Keys"] = $tableKeysinf_mov_caja;

$tdatainf_mov_caja[".listFields"] = array();
$tdatainf_mov_caja[".listFields"][] = "idmovimiento";
$tdatainf_mov_caja[".listFields"][] = "idusuario";
$tdatainf_mov_caja[".listFields"][] = "estado";
$tdatainf_mov_caja[".listFields"][] = "idcuenta";
$tdatainf_mov_caja[".listFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".listFields"][] = "monto_apertura";
$tdatainf_mov_caja[".listFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".listFields"][] = "monto_gastado";
$tdatainf_mov_caja[".listFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".listFields"][] = "monto_cierre";
$tdatainf_mov_caja[".listFields"][] = "estado1";
$tdatainf_mov_caja[".listFields"][] = "observacion";

$tdatainf_mov_caja[".viewFields"] = array();
$tdatainf_mov_caja[".viewFields"][] = "idmovimiento";
$tdatainf_mov_caja[".viewFields"][] = "idusuario";
$tdatainf_mov_caja[".viewFields"][] = "estado";
$tdatainf_mov_caja[".viewFields"][] = "idcuenta";
$tdatainf_mov_caja[".viewFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".viewFields"][] = "monto_apertura";
$tdatainf_mov_caja[".viewFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".viewFields"][] = "monto_gastado";
$tdatainf_mov_caja[".viewFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".viewFields"][] = "monto_cierre";
$tdatainf_mov_caja[".viewFields"][] = "estado1";
$tdatainf_mov_caja[".viewFields"][] = "observacion";

$tdatainf_mov_caja[".addFields"] = array();
$tdatainf_mov_caja[".addFields"][] = "idusuario";
$tdatainf_mov_caja[".addFields"][] = "estado";
$tdatainf_mov_caja[".addFields"][] = "observacion";

$tdatainf_mov_caja[".inlineAddFields"] = array();
$tdatainf_mov_caja[".inlineAddFields"][] = "idusuario";
$tdatainf_mov_caja[".inlineAddFields"][] = "estado";
$tdatainf_mov_caja[".inlineAddFields"][] = "idcuenta";
$tdatainf_mov_caja[".inlineAddFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".inlineAddFields"][] = "monto_apertura";
$tdatainf_mov_caja[".inlineAddFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".inlineAddFields"][] = "monto_gastado";
$tdatainf_mov_caja[".inlineAddFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".inlineAddFields"][] = "monto_cierre";
$tdatainf_mov_caja[".inlineAddFields"][] = "estado1";
$tdatainf_mov_caja[".inlineAddFields"][] = "observacion";

$tdatainf_mov_caja[".editFields"] = array();
$tdatainf_mov_caja[".editFields"][] = "idusuario";
$tdatainf_mov_caja[".editFields"][] = "estado";
$tdatainf_mov_caja[".editFields"][] = "observacion";

$tdatainf_mov_caja[".inlineEditFields"] = array();
$tdatainf_mov_caja[".inlineEditFields"][] = "idusuario";
$tdatainf_mov_caja[".inlineEditFields"][] = "estado";
$tdatainf_mov_caja[".inlineEditFields"][] = "idcuenta";
$tdatainf_mov_caja[".inlineEditFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".inlineEditFields"][] = "monto_apertura";
$tdatainf_mov_caja[".inlineEditFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".inlineEditFields"][] = "monto_gastado";
$tdatainf_mov_caja[".inlineEditFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".inlineEditFields"][] = "monto_cierre";
$tdatainf_mov_caja[".inlineEditFields"][] = "estado1";
$tdatainf_mov_caja[".inlineEditFields"][] = "observacion";

$tdatainf_mov_caja[".exportFields"] = array();
$tdatainf_mov_caja[".exportFields"][] = "idmovimiento";
$tdatainf_mov_caja[".exportFields"][] = "idusuario";
$tdatainf_mov_caja[".exportFields"][] = "estado";
$tdatainf_mov_caja[".exportFields"][] = "idcuenta";
$tdatainf_mov_caja[".exportFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".exportFields"][] = "monto_apertura";
$tdatainf_mov_caja[".exportFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".exportFields"][] = "monto_gastado";
$tdatainf_mov_caja[".exportFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".exportFields"][] = "monto_cierre";
$tdatainf_mov_caja[".exportFields"][] = "estado1";
$tdatainf_mov_caja[".exportFields"][] = "observacion";

$tdatainf_mov_caja[".printFields"] = array();
$tdatainf_mov_caja[".printFields"][] = "idmovimiento";
$tdatainf_mov_caja[".printFields"][] = "idusuario";
$tdatainf_mov_caja[".printFields"][] = "estado";
$tdatainf_mov_caja[".printFields"][] = "idcuenta";
$tdatainf_mov_caja[".printFields"][] = "fecha_apertura";
$tdatainf_mov_caja[".printFields"][] = "monto_apertura";
$tdatainf_mov_caja[".printFields"][] = "monto_recaudado";
$tdatainf_mov_caja[".printFields"][] = "monto_gastado";
$tdatainf_mov_caja[".printFields"][] = "fecha_cierre";
$tdatainf_mov_caja[".printFields"][] = "monto_cierre";
$tdatainf_mov_caja[".printFields"][] = "estado1";
$tdatainf_mov_caja[".printFields"][] = "observacion";

//	idmovimiento
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 1;
	$fdata["strName"] = "idmovimiento";
	$fdata["GoodName"] = "idmovimiento";
	$fdata["ownerTable"] = "movimiento_caja";
	$fdata["Label"] = "Nº"; 
	$fdata["FieldType"] = 3;
	
		$fdata["AutoInc"] = true;
	
		
		$fdata["bListPage"] = true; 
	
		
		
		
		
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "idmovimiento"; 
		$fdata["FullName"] = "movimiento_caja.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_mov_caja["idmovimiento"] = $fdata;
//	idusuario
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 2;
	$fdata["strName"] = "idusuario";
	$fdata["GoodName"] = "idusuario";
	$fdata["ownerTable"] = "movimiento_caja";
	$fdata["Label"] = "Usuario"; 
	$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"] = "idusuario"; 
		$fdata["FullName"] = "movimiento_caja.idusuario";
	
		
		
				$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"] = "idusuario";
	$edata["LinkFieldType"] = 3;
	$edata["DisplayField"] = "nombres";
	
		
	$edata["LookupTable"] = "usuario";
	$edata["LookupOrderBy"] = "";
	
		
		
		
		
		
				
	
	
	//	End Lookup Settings

		$edata["IsRequired"] = true; 
	
		
		
		
			$edata["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
						$edata["validateAs"]["basicValidate"][] = "IsRequired";
	
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_mov_caja["idusuario"] = $fdata;
//	estado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 3;
	$fdata["strName"] = "estado";
	$fdata["GoodName"] = "estado";
	$fdata["ownerTable"] = "movimiento_caja";
	$fdata["Label"] = "Estado"; 
	$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"] = "estado"; 
		$fdata["FullName"] = "movimiento_caja.estado";
	
		
		
				$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_mov_caja["estado"] = $fdata;
//	idcuenta
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 4;
	$fdata["strName"] = "idcuenta";
	$fdata["GoodName"] = "idcuenta";
	$fdata["ownerTable"] = "det_movimiento";
	$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_movimiento.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_mov_caja["idcuenta"] = $fdata;
//	fecha_apertura
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 5;
	$fdata["strName"] = "fecha_apertura";
	$fdata["GoodName"] = "fecha_apertura";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Fecha Apertura"; 
	$fdata["FieldType"] = 135;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "fecha_apertura"; 
		$fdata["FullName"] = "det_movimiento.fecha_apertura";
	
		
		
				$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["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
		
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_mov_caja["fecha_apertura"] = $fdata;
//	monto_apertura
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 6;
	$fdata["strName"] = "monto_apertura";
	$fdata["GoodName"] = "monto_apertura";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Monto Apertura"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "monto_apertura"; 
		$fdata["FullName"] = "det_movimiento.monto_apertura";
	
		
		
				$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_mov_caja["monto_apertura"] = $fdata;
//	monto_recaudado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 7;
	$fdata["strName"] = "monto_recaudado";
	$fdata["GoodName"] = "monto_recaudado";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Monto Recaudado"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "monto_recaudado"; 
		$fdata["FullName"] = "det_movimiento.monto_recaudado";
	
		
		
				$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_mov_caja["monto_recaudado"] = $fdata;
//	monto_gastado
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 8;
	$fdata["strName"] = "monto_gastado";
	$fdata["GoodName"] = "monto_gastado";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Monto Gastado"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "monto_gastado"; 
		$fdata["FullName"] = "det_movimiento.monto_gastado";
	
		
		
				$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_mov_caja["monto_gastado"] = $fdata;
//	fecha_cierre
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 9;
	$fdata["strName"] = "fecha_cierre";
	$fdata["GoodName"] = "fecha_cierre";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Fecha Cierre"; 
	$fdata["FieldType"] = 135;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		$fdata["bAdvancedSearch"] = true; 
	
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "fecha_cierre"; 
		$fdata["FullName"] = "det_movimiento.fecha_cierre";
	
		
		
				$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["acceptFileTypes"] = ".+$";
	
		$edata["maxNumberOfFiles"] = 1;
	
		
		
		$edata["DateEditType"] = 13; 
	$edata["InitialYearFactor"] = 100; 
	$edata["LastYearFactor"] = 10; 
	
		
		
		
//	Begin validation
	$edata["validateAs"] = array();
		
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_mov_caja["fecha_cierre"] = $fdata;
//	monto_cierre
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 10;
	$fdata["strName"] = "monto_cierre";
	$fdata["GoodName"] = "monto_cierre";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Monto Cierre"; 
	$fdata["FieldType"] = 3;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "monto_cierre"; 
		$fdata["FullName"] = "det_movimiento.monto_cierre";
	
		
		
				$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_mov_caja["monto_cierre"] = $fdata;
//	estado1
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 11;
	$fdata["strName"] = "estado1";
	$fdata["GoodName"] = "estado1";
	$fdata["ownerTable"] = "det_movimiento";
	$fdata["Label"] = "Estado"; 
	$fdata["FieldType"] = 200;
	
		
		
		$fdata["bListPage"] = true; 
	
		
		$fdata["bInlineAdd"] = true; 
	
		
		$fdata["bInlineEdit"] = true; 
	
		$fdata["bViewPage"] = true; 
	
		
		$fdata["bPrinterPage"] = true; 
	
		$fdata["bExportPage"] = true; 
	
		$fdata["strField"] = "estado"; 
		$fdata["FullName"] = "det_movimiento.estado";
	
		
		
				
				$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();
		
			//	End validation
	
		
		
		$fdata["EditFormats"]["search"] = $edata;
//	End Edit Formats
	
		$fdata["isSeparate"] = false;
	
		
		
	$tdatainf_mov_caja["estado1"] = $fdata;
//	observacion
//	Custom field settings
	$fdata = array();
	$fdata["Index"] = 12;
	$fdata["strName"] = "observacion";
	$fdata["GoodName"] = "observacion";
	$fdata["ownerTable"] = "movimiento_caja";
	$fdata["Label"] = "Observacion"; 
	$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"] = "observacion"; 
		$fdata["FullName"] = "movimiento_caja.observacion";
	
		
		
				
				$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_mov_caja["observacion"] = $fdata;

	
$tables_data["inf_mov_caja"]=&$tdatainf_mov_caja;
$field_labels["inf_mov_caja"] = &$fieldLabelsinf_mov_caja;
$fieldToolTips["inf_mov_caja"] = &$fieldToolTipsinf_mov_caja;

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

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

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










function createSqlQuery_inf_mov_caja()
{
$proto0=array();
$proto0["m_strHead"] = "SELECT";
$proto0["m_strFieldList"] = "movimiento_caja.idmovimiento,  movimiento_caja.idusuario,  movimiento_caja.estado,  det_movimiento.idcuenta,  det_movimiento.fecha_apertura,  det_movimiento.monto_apertura,  det_movimiento.monto_recaudado,  det_movimiento.monto_gastado,  det_movimiento.fecha_cierre,  det_movimiento.monto_cierre,  det_movimiento.estado AS estado1,  movimiento_caja.observacion";
$proto0["m_strFrom"] = "FROM movimiento_caja  INNER JOIN det_movimiento ON movimiento_caja.idmovimiento = det_movimiento.idmovimiento";
$proto0["m_strWhere"] = "";
$proto0["m_strOrderBy"] = "ORDER BY movimiento_caja.idmovimiento DESC";
$proto0["m_strTail"] = "";
$proto0["cipherer"] = null;
$proto1=array();
$proto1["m_sql"] = "";
$proto1["m_uniontype"] = "SQLL_UNKNOWN";
	$obj = new SQLNonParsed(array(
	"m_sql" => ""
));

$proto1["m_column"]=$obj;
$proto1["m_contained"] = array();
$proto1["m_strCase"] = "";
$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" => "idmovimiento",
	"m_strTable" => "movimiento_caja"
));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

$proto0["m_fieldlist"][]=$obj;
						$proto27=array();
			$obj = new SQLField(array(
	"m_strName" => "observacion",
	"m_strTable" => "movimiento_caja"
));

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

$proto0["m_fieldlist"][]=$obj;
$proto0["m_fromlist"] = array();
												$proto29=array();
$proto29["m_link"] = "SQLL_MAIN";
			$proto30=array();
$proto30["m_strName"] = "movimiento_caja";
$proto30["m_columns"] = array();
$proto30["m_columns"][] = "idmovimiento";
$proto30["m_columns"][] = "idusuario";
$proto30["m_columns"][] = "observacion";
$proto30["m_columns"][] = "estado";
$obj = new SQLTable($proto30);

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

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

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

$proto0["m_fromlist"][]=$obj;
												$proto33=array();
$proto33["m_link"] = "SQLL_INNERJOIN";
			$proto34=array();
$proto34["m_strName"] = "det_movimiento";
$proto34["m_columns"] = array();
$proto34["m_columns"][] = "iddet_movimiento";
$proto34["m_columns"][] = "idmovimiento";
$proto34["m_columns"][] = "idcuenta";
$proto34["m_columns"][] = "fecha_apertura";
$proto34["m_columns"][] = "monto_apertura";
$proto34["m_columns"][] = "monto_recaudado";
$proto34["m_columns"][] = "monto_gastado";
$proto34["m_columns"][] = "fecha_cierre";
$proto34["m_columns"][] = "monto_cierre";
$proto34["m_columns"][] = "estado";
$obj = new SQLTable($proto34);

$proto33["m_table"] = $obj;
$proto33["m_alias"] = "";
$proto35=array();
$proto35["m_sql"] = "movimiento_caja.idmovimiento = det_movimiento.idmovimiento";
$proto35["m_uniontype"] = "SQLL_UNKNOWN";
						$obj = new SQLField(array(
	"m_strName" => "idmovimiento",
	"m_strTable" => "movimiento_caja"
));

$proto35["m_column"]=$obj;
$proto35["m_contained"] = array();
$proto35["m_strCase"] = "= det_movimiento.idmovimiento";
$proto35["m_havingmode"] = "0";
$proto35["m_inBrackets"] = "0";
$proto35["m_useAlias"] = "0";
$obj = new SQLLogicalExpr($proto35);

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

$proto0["m_fromlist"][]=$obj;
$proto0["m_groupby"] = array();
$proto0["m_orderby"] = array();
												$proto37=array();
						$obj = new SQLField(array(
	"m_strName" => "idmovimiento",
	"m_strTable" => "movimiento_caja"
));

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

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

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

$tableEvents["inf_mov_caja"] = new eventsBase;
$tdatainf_mov_caja[".hasEvents"] = false;

$cipherer = new RunnerCipherer("inf_mov_caja");

?>