From dd99abfc741643d6727f7b83e79f55a0a579dd1b Mon Sep 17 00:00:00 2001 From: julio Date: Wed, 19 Feb 2014 22:07:37 +0000 Subject: [PATCH] =?UTF-8?q?0004940:=20Erro=20ao=20Editar=20ponto=20venda?= =?UTF-8?q?=20na=20Esta=C3=A7=C3=A3o.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@33760 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/EstacionServiceImpl.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java index 28129c012..25cbf2992 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/EstacionServiceImpl.java @@ -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"); + } } - } } }