From 96f88d91725f34afcbcf74588b3ca0f9c25a73e9 Mon Sep 17 00:00:00 2001 From: gleimar Date: Mon, 4 May 2015 17:05:45 +0000 Subject: [PATCH] fixes bug#6255 git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@43626 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index 7f78ce47a..9fe1b7fd5 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -77,8 +77,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { Exception respEx = null; if (ApplicationProperties.getInstance().integracionTotvs()) { try { - if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() - || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) { + if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() + || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor())) { String resp = integracionTotvs(entidad); TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp); @@ -138,8 +138,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { if (ApplicationProperties.getInstance().integracionTotvs()) { try { - if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() - || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) { + if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() + || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor())) { String resp = integracionTotvs(entidad); TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);