Merge pull request 'fixes bug#AL-2164' (!66) from AL-2164 into master
Reviewed-on: http://18.235.188.113:3000/adm/VentaBoletosAdm/pulls/66 Reviewed-by: Valdir Cordeiro <valdir.cordeiro@totvs.com.br> Reviewed-by: Wilian Domingues <wilian@rjconsultores.com.br>master 1.0.53
commit
2b583f1045
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.0.52</version>
|
||||
<version>1.0.53</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -634,15 +634,11 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
lsUsuarioBancario = usuarioBancarioService.obtenerTodos();
|
||||
lsLogFiles = getLogFiles();
|
||||
puntoVenta = (PuntoVenta) Executions.getCurrent().getArg().get("puntoVenta");
|
||||
|
||||
lsTodasCobrancas = cobrancaAdcService.buscarTodasAsCobrancas(puntoVenta);
|
||||
|
||||
lsOrgaoConcedentes = orgaoConcedenteService.obtenerTodos();
|
||||
|
||||
|
||||
super.doAfterCompose(comp);
|
||||
|
||||
|
||||
if(puntoVenta.getIndBloqueiaTipoPassagem()) {
|
||||
radIndBloquear.setSelected(Boolean.TRUE);
|
||||
}else {
|
||||
|
@ -657,9 +653,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
inserirItensLista(lsCategoriaBloquear);
|
||||
|
||||
getTxtTaxaConvenienciaPorc().setConstraint(getCt());
|
||||
|
@ -746,6 +739,16 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
if (puntoVenta.getPuntoventaId() != null) {
|
||||
puntoVenta = puntoVentaService.obtenerID(puntoVenta.getPuntoventaId());
|
||||
|
||||
//chamadas de inicialização para evitar LazyInitializationException
|
||||
puntoVenta.getLsFormaPagoDet().size();
|
||||
puntoVenta.getLsParamRecoleccion().size();
|
||||
puntoVenta.getLsPtovtaEmpresa().size();
|
||||
puntoVenta.getPtovtaAntecipacomissaoList().size();
|
||||
puntoVenta.getPtovtaEstoqueList().size();
|
||||
puntoVenta.getPtovtaHorarioList().size();
|
||||
puntoVenta.getLsPtovtaUsuarioBancario().size();
|
||||
|
||||
lsEmpresaComissao = empresaService.buscarNotInPuntoVtaComissao(puntoVenta);
|
||||
|
||||
lsPtovtaComissao = ptovtaComissaoService.buscarByPuntaVenta(puntoVenta);
|
||||
|
@ -771,15 +774,25 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
if (puntoVenta.getNumfax() != null) {
|
||||
txtNumFax.setValue(puntoVenta.getNumfax());
|
||||
}
|
||||
|
||||
try {
|
||||
if (puntoVenta.getNumtelefonouno() != null) {
|
||||
numtelefonouno.setValue(puntoVenta.getNumtelefonouno());
|
||||
}
|
||||
|
||||
if (puntoVenta.getNumtelefonodos() != null) {
|
||||
numtelefonodos.setValue(puntoVenta.getNumtelefonodos());
|
||||
}
|
||||
}catch (WrongValueException e) {
|
||||
Messagebox.show("Telefone fora do padrão",
|
||||
Labels.getLabel("editarEmpresaController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
|
||||
if (puntoVenta.getNumDoCPuntoVenta() != null) {
|
||||
txtNumDoCPuntoVenta.setValue(puntoVenta.getNumDoCPuntoVenta());
|
||||
}
|
||||
|
||||
if (puntoVenta.getRazonSocial() != null) {
|
||||
txtRazonSocial.setValue(puntoVenta.getRazonSocial());
|
||||
}
|
||||
|
@ -1059,7 +1072,6 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
|
||||
empresaContaBancariaList.setMultiple(true);
|
||||
empresaContaBancariaList.setData(new ArrayList<EmpresaContaBancaria>(0));
|
||||
|
||||
} catch (Exception e) {
|
||||
log.error("Punto de Venta: ", e);
|
||||
Messagebox.show(
|
||||
|
|
Loading…
Reference in New Issue