fixes bug#6255
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@43626 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
a3d33d579b
commit
96f88d9172
|
@ -77,8 +77,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
try {
|
try {
|
||||||
if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
||||||
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor())) {
|
||||||
String resp = integracionTotvs(entidad);
|
String resp = integracionTotvs(entidad);
|
||||||
|
|
||||||
TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);
|
TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);
|
||||||
|
@ -138,8 +138,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
||||||
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor())) {
|
||||||
String resp = integracionTotvs(entidad);
|
String resp = integracionTotvs(entidad);
|
||||||
|
|
||||||
TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);
|
TipoRetorno retornoTotvs = RetornoTotvs.validaRetornoTotvs(resp);
|
||||||
|
|
Loading…
Reference in New Issue