campo multa relatorio devolução fixes bug#AL-4023
parent
bff4d01362
commit
afd1a696e7
|
@ -2,3 +2,4 @@
|
|||
/.project
|
||||
/.settings
|
||||
/target
|
||||
/.factorypath
|
||||
|
|
2
pom.xml
2
pom.xml
|
@ -3,7 +3,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ModelWeb</artifactId>
|
||||
<version>1.51.0</version>
|
||||
<version>1.51.1</version>
|
||||
|
||||
<distributionManagement>
|
||||
<repository>
|
||||
|
|
|
@ -126,7 +126,7 @@ public class GP_PricingOcupaAntecipaServiceImpl implements GP_PricingOcupaAnteci
|
|||
}
|
||||
args.add(faixa);
|
||||
log.info("registro que traslapa PricingOcupaAntecipa id =" + poa.getPricingocupaantecipaId());
|
||||
throw new BusinessException("PricingOcupaAntecipaServiceImpl.msg.traslapa", args.toArray());
|
||||
throw new BusinessException("pricingOcupaAntecipaServiceImpl.msg.traslapa", args.toArray());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ public class PricingOcupaAntecipaServiceImpl implements PricingOcupaAntecipaServ
|
|||
@Transactional
|
||||
public PricingOcupaAntecipa suscribir(PricingOcupaAntecipa entidad) throws BusinessException {
|
||||
if (traslapa(entidad)) {
|
||||
throw new BusinessException("PricingOcupaAntecipaServiceImpl.msg.traslapa");
|
||||
throw new BusinessException("pricingOcupaAntecipaServiceImpl.msg.traslapa");
|
||||
}
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
|
@ -41,7 +41,7 @@ public class PricingOcupaAntecipaServiceImpl implements PricingOcupaAntecipaServ
|
|||
@Transactional(rollbackFor = BusinessException.class)
|
||||
public PricingOcupaAntecipa actualizacion(PricingOcupaAntecipa entidad) throws BusinessException {
|
||||
if (traslapa(entidad)) {
|
||||
throw new BusinessException("PricingOcupaAntecipaServiceImpl.msg.traslapa");
|
||||
throw new BusinessException("pricingOcupaAntecipaServiceImpl.msg.traslapa");
|
||||
}
|
||||
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
entidad.setFecmodif(Calendar.getInstance().getTime());
|
||||
|
|
|
@ -212,15 +212,15 @@ public class TramoServiceImpl implements TramoService {
|
|||
Tramo tramoOriginal = tramoDAO.obtenerID(tramo.getTramoId());
|
||||
|
||||
if (!tramo.getVia().equals(tramoOriginal.getVia())) {
|
||||
throw new BusinessException("TramoServiceImpl.msg.validacionVia");
|
||||
throw new BusinessException("tramoServiceImpl.msg.validacionVia");
|
||||
}
|
||||
|
||||
if (!tramo.getOrigem().equals(tramoOriginal.getOrigem())) {
|
||||
throw new BusinessException("TramoServiceImpl.msg.validacionOrigen");
|
||||
throw new BusinessException("tramoServiceImpl.msg.validacionOrigen");
|
||||
}
|
||||
|
||||
if (!tramo.getDestino().equals(tramoOriginal.getDestino())) {
|
||||
throw new BusinessException("TramoServiceImpl.msg.validacionDestino");
|
||||
throw new BusinessException("tramoServiceImpl.msg.validacionDestino");
|
||||
}
|
||||
|
||||
// validaciOn: No es posible quitar ClaseServicio de un tramo que esta asociado a una ruta e esa ruta tenga la misma clase de servicio
|
||||
|
@ -246,7 +246,7 @@ public class TramoServiceImpl implements TramoService {
|
|||
|
||||
if (alterouClaseTramoServico) {
|
||||
if (rutaCombinacionDAO.existeTramo(tramo, ts.getClaseServicio())) {
|
||||
throw new BusinessException("TramoServiceImpl.msg.validacionTramoServicio");
|
||||
throw new BusinessException("tramoServiceImpl.msg.validacionTramoServicio");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -267,7 +267,7 @@ public class TramoServiceImpl implements TramoService {
|
|||
|
||||
if (!existe) {
|
||||
if (rutaCombinacionDAO.existeTramo(tramo, tt.getClaseServicio())) {
|
||||
throw new BusinessException("TramoServiceImpl.msg.validacionTramoTiempo");
|
||||
throw new BusinessException("tramoServiceImpl.msg.validacionTramoTiempo");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue