fixes bug #6495
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@47458 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
18a2aa64ab
commit
7ccc398e7e
|
@ -93,7 +93,7 @@ public class TramoRutaServiceImpl implements TramoRutaService {
|
||||||
}
|
}
|
||||||
if ((s.getOrigen() == null) || (s.getDestino() == null) || (s.getVia() == null)
|
if ((s.getOrigen() == null) || (s.getDestino() == null) || (s.getVia() == null)
|
||||||
|| (s.getKmReal() == null) || (s.getSecuencia() == null) || (s.getTiempoRecorrido() == 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() });
|
throw new BusinessException("tramoRutaServiceImpl.msg.cambosObligatoriosCombinacion", new Object[] { s.getOrigen(), s.getDestino() });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue