From 315ab5b7df11237af20f4418cf435a2c1d3c620c Mon Sep 17 00:00:00 2001 From: frederico Date: Tue, 17 May 2016 20:32:01 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20bug=20#7474=20-=20corre=C3=A7=C3=A3o=20?= =?UTF-8?q?gera=C3=A7=C3=A3o=20autom=C3=A1tica=20de=20linhas=20e=20trechos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@56090 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/TramoRutaServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java index ec5a89f23..9864839f3 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java @@ -160,7 +160,7 @@ public class TramoRutaServiceImpl implements TramoRutaService { for (SecuenciaRutaTramoCoeficienteVO s : rutaTramoVO.getLsCombinacionRutaTramoVO()) { RutaCombinacion rutaCombinacion = new RutaCombinacion(); - rutaCombinacion.setIndventa(s.getPermiteVenda()); + rutaCombinacion.setIndventa(s.getPermiteVenda() == null ? true : s.getPermiteVenda()); rutaCombinacion.setRuta(ruta); rutaCombinacion.setTramo(tramoService.obtenerTramotPorOrigemDestinoVia(s.getOrigen(), s.getDestino(), s.getVia())); @@ -187,7 +187,7 @@ public class TramoRutaServiceImpl implements TramoRutaService { rutaTramoRegresoVO.setClaseServicio(rutaTramoVO.getClaseServicio()); rutaTramoRegresoVO.setOrgaoConcedente(rutaTramoVO.getOrgaoConcedente()); rutaTramoRegresoVO.setSolicitaNombrePasajero(rutaTramoVO.getSolicitaNombrePasajero()); - rutaTramoRegresoVO.setVentaHandHeld(rutaTramoVO.getVentaHandHeld()); + rutaTramoRegresoVO.setVentaHandHeld(rutaTramoVO.getVentaHandHeld() == null ? true : rutaTramoVO.getVentaHandHeld()); rutaTramoRegresoVO.setLsEmpresa(rutaTramoVO.getLsEmpresa()); if (rutaTramoVO.getIndSentidoIda()) {