fixes bug#AL-1627

master
lucas.taia 2023-03-14 20:16:23 -03:00
parent 2ae6632308
commit 8fc0506b57
3 changed files with 26 additions and 1 deletions

View File

@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<groupId>br.com.rjconsultores</groupId> <groupId>br.com.rjconsultores</groupId>
<artifactId>ventaboletosadm</artifactId> <artifactId>ventaboletosadm</artifactId>
<version>1.0.71</version> <version>1.0.72</version>
<packaging>war</packaging> <packaging>war</packaging>
<properties> <properties>

View File

@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
import java.math.BigDecimal; import java.math.BigDecimal;
import org.zkoss.zul.Checkbox;
import org.zkoss.zul.Listcell; import org.zkoss.zul.Listcell;
import org.zkoss.zul.Listitem; import org.zkoss.zul.Listitem;
import org.zkoss.zul.ListitemRenderer; import org.zkoss.zul.ListitemRenderer;
@ -45,6 +46,24 @@ public class RenderTarjetaCredito implements ListitemRenderer {
lc = new Listcell(""); lc = new Listcell("");
} }
lc.setParent(lstm); lc.setParent(lstm);
BigDecimal tarifaMinima = tarjetaCredito.getTarifaMinima();
if (tarifaMinima != null) {
lc = new Listcell(tarifaMinima.setScale(2).toString());
} else {
lc = new Listcell("");
}
lc.setParent(lstm);
lc = new Listcell();
boolean indAplicaVenda = tarjetaCredito.getIndAplicaVenda() != null ? tarjetaCredito.getIndAplicaVenda() : false;
Checkbox chkAplicaVenda = new Checkbox();
chkAplicaVenda.setDisabled(Boolean.TRUE);
chkAplicaVenda.setChecked(indAplicaVenda);
lc.appendChild(chkAplicaVenda);
lc.setParent(lstm);
lstm.setAttribute("data", tarjetaCredito); lstm.setAttribute("data", tarjetaCredito);
} }

View File

@ -67,6 +67,12 @@
<listheader image="/gui/img/builder.gif" <listheader image="/gui/img/builder.gif"
label="${c:l('busquedaTarjetaCreditoController.tasa.label')}" label="${c:l('busquedaTarjetaCreditoController.tasa.label')}"
sort="auto(tasa)" /> sort="auto(tasa)" />
<listheader image="/gui/img/builder.gif"
label="${c:l('busquedaTarjetaCreditoController.parcelaMinima.label')}"
sort="auto(tarifaMinima)" />
<listheader image="/gui/img/builder.gif"
label="${c:l('busquedaTarjetaCreditoController.indAplicarJuros.label')}"
sort="auto(indAplicaVenda)" />
</listhead> </listhead>
</listbox> </listbox>
</window> </window>