diff --git a/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java index d36f6a321..644ed3d1e 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java @@ -82,6 +82,12 @@ public class EstacionServiceImpl implements EstacionService { estacion.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); estacion.setFecmodif(Calendar.getInstance().getTime()); estacion.setActivo(Boolean.TRUE); + + if (estacion.getEstacionId() == null) { + estacion = estacionDAO.suscribir(estacion); + } else { + estacion = estacionDAO.actualizacion(estacion); + } String errorNoChequeFolio = null; for (EstacionImpresora ei : estacion.getLsEstacionImpresora()) { @@ -92,12 +98,6 @@ public class EstacionServiceImpl implements EstacionService { errorNoChequeFolio = autorizaFolioService.noChequeFolioPreimpresos(ei, true); } - if (estacion.getEstacionId() == null) { - estacion = estacionDAO.suscribir(estacion); - } else { - estacion = estacionDAO.actualizacion(estacion); - } - if (StringUtils.isNotBlank(errorNoChequeFolio)) { throw new BusinessException(errorNoChequeFolio); }