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-87c2c4800839
master
julio 2014-02-19 22:07:37 +00:00
parent 515450049d
commit dd99abfc74
1 changed files with 5 additions and 4 deletions

View File

@ -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");
}
}
}
}
}