From ab7cb8cd0bc8c950dbd285516dbe7f74513a6d2f Mon Sep 17 00:00:00 2001 From: wilian Date: Wed, 31 Oct 2018 21:52:00 +0000 Subject: [PATCH] fixes bug#12555 dev:thiago qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@86683 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../catalogos/EditarPuntoVentaController.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java index 99beb3f52..03ce1278a 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/catalogos/EditarPuntoVentaController.java @@ -155,7 +155,6 @@ import com.rjconsultores.ventaboletos.web.utilerias.render.RenderParadaPtoVtaChe import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtoVtaSeguro; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaCatInd; import com.rjconsultores.ventaboletos.web.utilerias.render.RenderPtovtaComissao; -import com.rjconsultores.ventaboletos.web.utilerias.spring.AppContext; import com.rjconsultores.ws.totvs.service.GeradorTitulosIntegracion; import com.rjconsultores.ws.totvs.service.GerenciadorEnvioTitulosWS; import com.rjconsultores.ws.utileria.RetornoTotvs.TipoRetorno; @@ -219,6 +218,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { private FechamentoParamptovtaService fechamentoParamptovtaService; @Autowired private CategoriaBloqueioImpPosteriorService categoriaBloqueioImpPosteriorService; + @Autowired + private ConstanteService constanteService; private PuntoVenta puntoVenta; private Textbox txtCP; @@ -1417,6 +1418,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { txtCarga.getValue(); txtAntecipRetem.getValue(); txtAntecipPercentual.getValue(); + numtelefonodos.getValue(); + numtelefonouno.getValue(); + getTxtTaxaConvenienciaPorc().getValue(); if (getTxtTaxaConvenienciaPorc().getValue() != null && getTxtTaxaConvenienciaPorc().getValue().compareTo(BigDecimal.ZERO) == 1) { @@ -1638,18 +1642,24 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { puntoVenta.setDateFechamento(dateFechamento.getValue()); String getString = null; + + puntoVenta.setNumfax(null); if (!txtNumFax.getValue().equals("")) { getString = this.replaceTextbox(txtNumFax); if (getString.length() >= 11) { puntoVenta.setNumfax(txtNumFax.getValue().replace("_", "")); } } + + puntoVenta.setNumtelefonouno(null); if (!numtelefonouno.getValue().equals("")) { getString = this.replaceTextbox(numtelefonouno); if (getString.length() >= 11) { puntoVenta.setNumtelefonouno(numtelefonouno.getValue().replace("_", "")); } } + + puntoVenta.setNumtelefonodos(null); if (!numtelefonodos.getValue().equals("")) { getString = this.replaceTextbox(numtelefonodos); if (getString.length() >= 11) { @@ -1788,8 +1798,9 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { private boolean validarEmail() throws InterruptedException { + + descCorreo.getValue(); - ConstanteService constanteService = (ConstanteService) AppContext.getApplicationContext().getBean("constanteService"); Constante constante = constanteService.buscarPorNomeConstante("TOTALBUS_EMAIL_OPCIONAL_PV"); if(constante == null || constante.getValorconstante().equals("0")){