From b27d8745cf84dc286ba7db6dbc04aa9bad405e9f Mon Sep 17 00:00:00 2001 From: "wallace.novo" Date: Tue, 29 Nov 2022 16:23:20 +0000 Subject: [PATCH] fixes bug#AL-1823 qua: dev: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@115663 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../catalogos/EditarPuntoVentaController.java | 7 ++++++- .../PuntoVendaHistoricoFormaPagoListItemRenderer.java | 2 +- 2 files changed, 7 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 82f768024..fe79a9e4b 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 @@ -1807,6 +1807,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { } } + @SuppressWarnings("unchecked") public void onClick$btnSalvar(Event ev) throws InterruptedException { txtMaxCancelacion.getValue(); txtNome.getValue(); @@ -2026,6 +2027,8 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { if(!isPermissaoMotivoFormaPago) { puntoVenta.setLsFormaPagoDet(lsFormaPagoDet); + }else { + puntoVenta.setLsFormaPagoDet(formaPagoList.getListData()); } puntoVenta.setLsParamRecoleccion(lsParamRecoleccion); @@ -4612,8 +4615,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer { formaPagosIds[i] = formaPago.getFormapagoId().intValue(); } } - + busqueda.addFilterEqual("puntoVenta",puntoVenta); busqueda.addFilterEqual("activo", Boolean.TRUE); + busqueda.addSortAsc("fecAlteracao"); + if(formaPagosIds.length > 0) { busqueda.addFilterIn("formaPagoId", Arrays.asList(formaPagosIds)); } diff --git a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/PuntoVendaHistoricoFormaPagoListItemRenderer.java b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/PuntoVendaHistoricoFormaPagoListItemRenderer.java index df27c3958..3630d7727 100644 --- a/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/PuntoVendaHistoricoFormaPagoListItemRenderer.java +++ b/src/java/com/rjconsultores/ventaboletos/web/gui/controladores/configuracioneccomerciales/PuntoVendaHistoricoFormaPagoListItemRenderer.java @@ -27,7 +27,7 @@ public class PuntoVendaHistoricoFormaPagoListItemRenderer implements ListitemRen HistoricoFormaPagoPuntoVenta h = (HistoricoFormaPagoPuntoVenta) o; - Listcell lc = new Listcell(h.getIndInclusao() != null ? h.getIndInclusao() ? "Inclusão" : "Exclusão" : null); + Listcell lc = new Listcell(h.getIndInclusao() != null ? h.getIndInclusao() ? "Inclusao" : "Exclusao" : null); lc.setParent(lstm); SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");