public function consolidateAction()
 {
     try {
         $request = $this->getRequest();
         if ($this->getRequest()->isPost()) {
             $lMapper = new Gyuser_Model_LiquidacionesDataMapper();
             $pdlObj = new Gyuser_Model_Liquidaciones();
             $liquidaciones_id = (int) $request->id;
             if ($liquidaciones_id) {
                 $cMapper = new Gyuser_Model_ChequesDataMapper();
                 $cObj = new Gyuser_Model_Cheques();
                 $cObj->setLiquidacion_id($liquidaciones_id);
                 $chequesList = $cMapper->UpdateLiquidacionDeleted($cObj);
                 $cMapper = new Gyuser_Model_OperationsDataMapper();
                 $pObj = new Gyuser_Model_Operations();
                 $pObj->setLiquidacion_id($liquidaciones_id);
                 $opertationsList = $cMapper->UpdateLiquidacionDeleted($pObj);
             }
             $pdlObj->setId($liquidaciones_id);
             $pdlObj->setDate($request->date);
             $pdlObj->setCurrent_account_balance($request->current_account_balance);
             $pdlObj->setAmount_payed($request->amount_payed);
             $pdlObj->setPrevious_account_balance(floatval($request->previous_account_balance));
             $pdlObj->setProvider_id($request->provider_id);
             $pdlObj->setCheques_json($request->cheques_json);
             $pdlObj->setOperations_json($request->operations_json);
             $pdlObj->setRejected_cheques_json($request->rejected_cheques_json);
             $pdlObj->setAcreditacion($request->acreditacion);
             $pdlObj->setTasa_anual($request->tasa_anual);
             $pdlObj->setImpuesto_al_cheque($request->impuesto_al_cheque);
             $pdlObj->setAcreditacion_capital($request->acreditacion_capital);
             $pdlObj->setAcreditacion_interior($request->acreditacion_interior);
             $pdlObj->setGastos_general($request->gastos_general);
             $pdlObj->setGastos_interior($request->gastos_interior);
             if ($request->committed) {
                 $pdlObj->setCommitted($request->committed);
             }
             $lMapper->consolidate($pdlObj);
             $this->_helper->redirector('index', 'liquidaciones', 'gyuser', array('cave_id' => $request->cave_id));
         }
     } catch (Exception $e) {
         echo $e;
     }
 }