[Alba-desarrollo] SVN Alba r5350 - prosistem/alba/trunk/alba/apps/principal/modules/informes/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Dic 26 16:01:12 CET 2007


Author: josx
Date: 2007-12-26 12:01:12 -0300 (Wed, 26 Dec 2007)
New Revision: 5350

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php
Log:
Si se envia el fk_cuenta_id filtra alumnos por cuenta en los informes

Modified: prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php	2007-12-26 14:41:12 UTC (rev 5349)
+++ prosistem/alba/trunk/alba/apps/principal/modules/informes/actions/actions.class.php	2007-12-26 15:01:12 UTC (rev 5350)
@@ -508,9 +508,15 @@
                     //dependiendo si es una variables de cilcos
                     if( array_key_exists('loop', $result) AND $result['loop'] == 1) {
                         $criteria = new Criteria();
+
                         if($this->getRequestParameter('division_id')) {
                             $criteria->add(DivisionPeer::ID, $this->getRequestParameter('division_id'));
                         }
+
+                        if($this->getRequestParameter('fk_cuenta_id')) {
+                            $criteria->add(AlumnoPeer::FK_CUENTA_ID, $this->getRequestParameter('fk_cuenta_id'));
+                        }
+
                         $criteria->addJoin(RelAlumnoDivisionPeer::FK_ALUMNO_ID, AlumnoPeer::ID);
                         $criteria->addJoin(RelAlumnoDivisionPeer::FK_DIVISION_ID, DivisionPeer::ID);
                         $criteria->addAscendingOrderByColumn(AlumnoPeer::APELLIDO);




Más información sobre la lista de distribución Alba-desarrollo