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");