<?php

/**
 * 	Dear developer!
 *	Never modify events.php file, it is autogenerated.
 *  Modify PHP/EventTemplates/events.txt instead.
 *
 */

 class eventclass_promocion  extends eventsBase
{
	function __construct()
	{
	// fill list of events
		$this->events["BeforeMoveNextList"]=true;


	}

//	handlers

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
				// List page: After record processed
function BeforeMoveNextList(&$data, &$row, &$record, $recordId, $pageObject)
{

		




if ($data ["log"] == '1' || $data ["estado"] == '1')   
{
$pageObject->hideItem("custom_button", $recordId); 
}
else  {
$pageObject->showItem("custom_button", $recordId); 

}




if ($data ["ventas"] == '1' || $data ["estado"] == '1')   
{
$pageObject->hideItem("custom_button1", $recordId); 
}
else  {
$pageObject->showItem("custom_button1", $recordId); 

}
;		
} // function BeforeMoveNextList

		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		



}
?>
