From 32f1b6d70dd0ce41d899b98e7a27b619c3782230 Mon Sep 17 00:00:00 2001 From: julio Date: Wed, 15 Apr 2015 18:24:43 +0000 Subject: [PATCH] Totvs - WS Fornecedor / WS Cliente / WS Pedido Compra (fixes bug #6127) git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@43151 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../ventaboletos/service/impl/PuntoVentaServiceImpl.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java index a570da844..ee7f02efd 100644 --- a/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java +++ b/src/com/rjconsultores/ventaboletos/service/impl/PuntoVentaServiceImpl.java @@ -76,7 +76,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { Exception respEx = null; try { - if (entidad.getIndIntegracion() != TipoRetorno.CONCLUIDA.getValor()) { + if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() + || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) { String resp = integracionTotvs(entidad); TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp); @@ -133,7 +134,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService { Exception respEx = null; try { - if (entidad.getIndIntegracion() != TipoRetorno.CONCLUIDA.getValor()) { + if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor() + || entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) { String resp = integracionTotvs(entidad); TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);