campo multa relatorio devolução fixes bug#AL-4023' (!178) from AL-4023 into master
Reviewed-on: adm/ModelWeb#178 Reviewed-by: pinheiro <valdevir@rjconsultores.com.br>master
commit
8eaef82e17
|
@ -2,3 +2,4 @@
|
||||||
/.project
|
/.project
|
||||||
/.settings
|
/.settings
|
||||||
/target
|
/target
|
||||||
|
/.factorypath
|
||||||
|
|
2
pom.xml
2
pom.xml
|
@ -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>
|
||||||
|
|
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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());
|
||||||
|
|
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue