/** * <b> permite buscar las recaudaciones que fueron ingresadas. </b> * * <p>[Author: Paul Jimenez, Date: 09/06/2016] * * @throws HiperionException */ public void generarReporte() throws HiperionException { totalGastos = 0.0; recaudacionDTOs.clear(); try { Long idAfectacion = reporteRecaudacionBean.getIdAfectacion(); List<Gasto> gastos = recaudacionService.obtenerGastos(idAfectacion); for (Gasto gasto : gastos) { RecaudacionDTO recaudacionDTO = new RecaudacionDTO(); recaudacionDTO.setBeneficiario(gasto.getBeneficiarioGasto()); recaudacionDTO.setComprobante(gasto.getComprobanteGasto()); recaudacionDTO.setValorRecaudacion(gasto.getValorGasto()); recaudacionDTO.setFechaRecaudacion(gasto.getFechaGasto()); Partida partida = egresoService.obtenerPartidaById(gasto.getPartida().getIdPartida()); recaudacionDTO.setPartida(partida); totalGastos += gasto.getValorGasto(); recaudacionDTOs.add(recaudacionDTO); } obtenerTotalGastos(); createBarModels(); } catch (HiperionException e) { throw new HiperionException(e); } }