leonardo 2016-12-27 20:19:47 +00:00
parent e7e565a18b
commit ea7975519a
1 changed files with 2 additions and 1 deletions

View File

@ -97,6 +97,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
Exception respEx = null;
if (ApplicationProperties.getInstance().integracionTotvs()) {
try {
if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion().equals(TipoRetorno.PENDENTE.getValor())
|| entidad.getIndIntegracion().equals(TipoRetorno.ERRO.getValor()))) {
String resp = integracionTotvs(entidad);
@ -522,7 +523,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
}
private String integracionTotvs(PuntoVenta puntoVenta) throws Exception {
if (ApplicationProperties.getInstance().integracionTotvs()) {
if (ApplicationProperties.getInstance().integracionTotvs() && !constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")) {
validaCampos(puntoVenta);