From 7ccc398e7e963dc8380ba4488cecb5e6908c568a Mon Sep 17 00:00:00 2001 From: leonardo Date: Tue, 1 Sep 2015 20:11:08 +0000 Subject: [PATCH] fixes bug #6495 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@47458 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/TramoRutaServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java index f5fe47ed7..8fb850f8f 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/TramoRutaServiceImpl.java @@ -93,7 +93,7 @@ public class TramoRutaServiceImpl implements TramoRutaService { } if ((s.getOrigen() == null) || (s.getDestino() == null) || (s.getVia() == null) || (s.getKmReal() == null) || (s.getSecuencia() == null) || (s.getTiempoRecorrido() == null) - || (s.getCoeficienteTarifa1() == null) || (s.getKmCoeficiente1() == null) || (s.getKmCoeficiente1() == BigDecimal.ZERO)) { + || (!rutaTramoVO.getOrgaoConcedente().getOrgaoConcedenteId().equals(21) && ((s.getCoeficienteTarifa1() == null) || (s.getKmCoeficiente1() == null) || (s.getKmCoeficiente1() == BigDecimal.ZERO)))) { throw new BusinessException("tramoRutaServiceImpl.msg.cambosObligatoriosCombinacion", new Object[] { s.getOrigen(), s.getDestino() }); }