bug #7788
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@64349 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
9a30194926
commit
805c691fbc
|
@ -95,6 +95,7 @@ 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")){
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
@ -136,7 +137,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (respEx != null) {
|
if (respEx != null) {
|
||||||
if (respEx instanceof ValidacionCampoException) {
|
if (respEx instanceof ValidacionCampoException) {
|
||||||
throw (ValidacionCampoException) respEx;
|
throw (ValidacionCampoException) respEx;
|
||||||
|
@ -327,6 +328,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
|
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
|
|
||||||
|
if (!constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")){
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -367,7 +369,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
respEx = new IntegracionException(Atributos.MSG_ERRO_GENERICA + e.getMessage());
|
respEx = new IntegracionException(Atributos.MSG_ERRO_GENERICA + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
entidad = puntoVentaDAO.actualizacion(entidad);
|
entidad = puntoVentaDAO.actualizacion(entidad);
|
||||||
|
|
||||||
log.debug("iniciando integração com AG");
|
log.debug("iniciando integração com AG");
|
||||||
|
@ -525,7 +527,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
}
|
}
|
||||||
|
|
||||||
private String integracionTotvs(PuntoVenta puntoVenta) throws Exception {
|
private String integracionTotvs(PuntoVenta puntoVenta) throws Exception {
|
||||||
if (ApplicationProperties.getInstance().integracionTotvs() && !constanteService.buscarPorNomeConstante("WS_TOTVS_DESATIVA_INTEGRACAO").getValorconstante().equals("1")) {
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
|
|
||||||
validaCampos(puntoVenta);
|
validaCampos(puntoVenta);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue