<?php 
class eventclass_det_movimiento  extends eventsBase
{ 
	function eventclass_det_movimiento()
	{
	// fill list of events
		$this->events["BeforeAdd"]=true;

		$this->events["BeforeProcessPrint"]=true;



		$this->events["BeforeEdit"]=true;


//	onscreen events


	}
// Captchas functions	

//	handlers

		
		
		
		
		
		
		
		
		
		
				// Before record added
function BeforeAdd(&$values,&$message,$inline,&$pageObject)
{

		$values["monto_apertura"] = str_replace(".", "", $values["monto_apertura"]);
$values["monto_cierre"]=$values["monto_apertura"];
// Place event code here.
// Use "Add Action" button to add code snippets.

return true;
;		
} // function BeforeAdd

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		

		
		
		
		
		
				// Print page: Before process
function BeforeProcessPrint(&$conn,&$pageObject)
{

		if (@$_REQUEST["pdf_mode"] == "1") {
    // Aplicamos el filtro que viene desde generar.php
    $strWhereClause = $_REQUEST["where"];
    
    if($_REQUEST["order"]) {
        $strOrderBy = $_REQUEST["order"];
    }
}

// Place event code here.
// Use "Add Action" button to add code snippets.
;		
} // function BeforeProcessPrint

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
				// Before record updated
function BeforeEdit(&$values,$where,&$oldvalues,&$keys,&$message,$inline,&$pageObject)
{

		$values["monto_apertura"] = str_replace(".", "", $values["monto_apertura"]);
$values["monto_cierre"]=$values["monto_apertura"]-($values["monto_recaudado"]-$values["monto_gastado"]);

return true;
;		
} // function BeforeEdit

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
//	onscreen events

} 
?>
