0004940: Erro ao Editar ponto venda na Estação.
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@33760 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
515450049d
commit
dd99abfc74
|
@ -101,11 +101,12 @@ public class EstacionServiceImpl implements EstacionService {
|
|||
|
||||
if (!ApplicationProperties.getInstance().generarRotinaFolios()) {
|
||||
Estacion estacionPuntoVentaAnterior = estacionDAO.obtenerID(estacion.getEstacionId());
|
||||
if (!estacionPuntoVentaAnterior.getPuntoVenta().equals(estacion.getPuntoVenta())) {
|
||||
if (estacionDAO.temEstoque(estacionPuntoVentaAnterior.getPuntoVenta(), estacion)) {
|
||||
throw new BusinessException("estacionServiceImpl.msg.hayStock");
|
||||
if (estacionPuntoVentaAnterior.getPuntoVenta() != null)
|
||||
if (!estacionPuntoVentaAnterior.getPuntoVenta().equals(estacion.getPuntoVenta())) {
|
||||
if (estacionDAO.temEstoque(estacionPuntoVentaAnterior.getPuntoVenta(), estacion)) {
|
||||
throw new BusinessException("estacionServiceImpl.msg.hayStock");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue