gleimar 2015-05-04 17:05:45 +00:00
parent a3d33d579b
commit 96f88d9172
1 changed files with 4 additions and 4 deletions

View File

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