bug #7788
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64232 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e7e565a18b
commit
ea7975519a
|
@ -97,6 +97,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion().equals(TipoRetorno.PENDENTE.getValor())
|
if (entidad.getIndIntegracion() == null || (entidad.getIndIntegracion().equals(TipoRetorno.PENDENTE.getValor())
|
||||||
|| entidad.getIndIntegracion().equals(TipoRetorno.ERRO.getValor()))) {
|
|| entidad.getIndIntegracion().equals(TipoRetorno.ERRO.getValor()))) {
|
||||||
String resp = integracionTotvs(entidad);
|
String resp = integracionTotvs(entidad);
|
||||||
|
@ -522,7 +523,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String integracionTotvs(PuntoVenta puntoVenta) throws Exception {
|
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);
|
validaCampos(puntoVenta);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue