fixes bug#6252
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@43592 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
76a85c8a28
commit
a8e0007c29
|
@ -75,6 +75,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
try {
|
try {
|
||||||
if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
||||||
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
||||||
|
@ -112,7 +113,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
log.error(Atributos.MSG_ERRO_GENERICA, e);
|
log.error(Atributos.MSG_ERRO_GENERICA, e);
|
||||||
respEx = new IntegracionException(Atributos.MSG_ERRO_GENERICA + e.getMessage());
|
respEx = new IntegracionException(Atributos.MSG_ERRO_GENERICA + e.getMessage());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
entidad = puntoVentaDAO.suscribir(entidad);
|
entidad = puntoVentaDAO.suscribir(entidad);
|
||||||
|
|
||||||
if (respEx != null) {
|
if (respEx != null) {
|
||||||
|
@ -133,6 +134,9 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
entidad.setActivo(Boolean.TRUE);
|
entidad.setActivo(Boolean.TRUE);
|
||||||
|
|
||||||
Exception respEx = null;
|
Exception respEx = null;
|
||||||
|
|
||||||
|
if (ApplicationProperties.getInstance().integracionTotvs()) {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
if (entidad.getIndIntegracion() == TipoRetorno.PENDENTE.getValor()
|
||||||
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
|| entidad.getIndIntegracion() == TipoRetorno.ERRO.getValor()) {
|
||||||
|
@ -170,6 +174,7 @@ public class PuntoVentaServiceImpl implements PuntoVentaService {
|
||||||
log.error(Atributos.MSG_ERRO_GENERICA, e);
|
log.error(Atributos.MSG_ERRO_GENERICA, e);
|
||||||
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue