bug #7788
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64523 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
c994bb9470
commit
90cc564ddf
|
@ -95,7 +95,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
if (!constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")){
|
Constante desativaTotvs = constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO");
|
||||||
|
if (desativaTotvs != null && !desativaTotvs.getValorconstante().equals("1")){
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
@ -329,8 +330,8 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
|
Constante desativaTotvs = constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO");
|
||||||
if (!constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")){
|
if (desativaTotvs != null && !desativaTotvs.getValorconstante().equals("1")){
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue