campo multa relatorio devolução fixes bug#AL-4023

master
Fabio 2024-04-30 11:14:15 -03:00
parent bff4d01362
commit afd1a696e7
5 changed files with 10 additions and 9 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/.project /.project
/.settings /.settings
/target /target
/.factorypath

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ModelWeb</artifactId> <artifactId>ModelWeb</artifactId>
<version>1.51.0</version> <version>1.51.1</version>
<distributionManagement> <distributionManagement>
<repository> <repository>

View File

@ -126,7 +126,7 @@ public class GP_PricingOcupaAntecipaServiceImpl implements GP_PricingOcupaAnteci
} }
args.add(faixa); args.add(faixa);
log.info("registro que traslapa PricingOcupaAntecipa id =" + poa.getPricingocupaantecipaId()); 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());
} }
} }

View File

@ -29,7 +29,7 @@ public class PricingOcupaAntecipaServiceImpl implements PricingOcupaAntecipaServ
@Transactional @Transactional
public PricingOcupaAntecipa suscribir(PricingOcupaAntecipa entidad) throws BusinessException { public PricingOcupaAntecipa suscribir(PricingOcupaAntecipa entidad) throws BusinessException {
if (traslapa(entidad)) { if (traslapa(entidad)) {
throw new BusinessException("PricingOcupaAntecipaServiceImpl.msg.traslapa"); throw new BusinessException("pricingOcupaAntecipaServiceImpl.msg.traslapa");
} }
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
entidad.setFecmodif(Calendar.getInstance().getTime()); entidad.setFecmodif(Calendar.getInstance().getTime());
@ -41,7 +41,7 @@ public class PricingOcupaAntecipaServiceImpl implements PricingOcupaAntecipaServ
@Transactional(rollbackFor = BusinessException.class) @Transactional(rollbackFor = BusinessException.class)
public PricingOcupaAntecipa actualizacion(PricingOcupaAntecipa entidad) throws BusinessException { public PricingOcupaAntecipa actualizacion(PricingOcupaAntecipa entidad) throws BusinessException {
if (traslapa(entidad)) { if (traslapa(entidad)) {
throw new BusinessException("PricingOcupaAntecipaServiceImpl.msg.traslapa"); throw new BusinessException("pricingOcupaAntecipaServiceImpl.msg.traslapa");
} }
entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId()); entidad.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
entidad.setFecmodif(Calendar.getInstance().getTime()); entidad.setFecmodif(Calendar.getInstance().getTime());

View File

@ -212,15 +212,15 @@ public class TramoServiceImpl implements TramoService {
Tramo tramoOriginal = tramoDAO.obtenerID(tramo.getTramoId()); Tramo tramoOriginal = tramoDAO.obtenerID(tramo.getTramoId());
if (!tramo.getVia().equals(tramoOriginal.getVia())) { if (!tramo.getVia().equals(tramoOriginal.getVia())) {
throw new BusinessException("TramoServiceImpl.msg.validacionVia"); throw new BusinessException("tramoServiceImpl.msg.validacionVia");
} }
if (!tramo.getOrigem().equals(tramoOriginal.getOrigem())) { if (!tramo.getOrigem().equals(tramoOriginal.getOrigem())) {
throw new BusinessException("TramoServiceImpl.msg.validacionOrigen"); throw new BusinessException("tramoServiceImpl.msg.validacionOrigen");
} }
if (!tramo.getDestino().equals(tramoOriginal.getDestino())) { 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 // 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 (alterouClaseTramoServico) {
if (rutaCombinacionDAO.existeTramo(tramo, ts.getClaseServicio())) { 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 (!existe) {
if (rutaCombinacionDAO.existeTramo(tramo, tt.getClaseServicio())) { if (rutaCombinacionDAO.existeTramo(tramo, tt.getClaseServicio())) {
throw new BusinessException("TramoServiceImpl.msg.validacionTramoTiempo"); throw new BusinessException("tramoServiceImpl.msg.validacionTramoTiempo");
} }
} }
} }