fixes bug#AL-1627
parent
2ae6632308
commit
8fc0506b57
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.71</version>
|
||||
<version>1.0.72</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -2,6 +2,7 @@ package com.rjconsultores.ventaboletos.web.utilerias.render;
|
|||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Listcell;
|
||||
import org.zkoss.zul.Listitem;
|
||||
import org.zkoss.zul.ListitemRenderer;
|
||||
|
@ -45,6 +46,24 @@ public class RenderTarjetaCredito implements ListitemRenderer {
|
|||
lc = new Listcell("");
|
||||
}
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -67,6 +67,12 @@
|
|||
<listheader image="/gui/img/builder.gif"
|
||||
label="${c:l('busquedaTarjetaCreditoController.tasa.label')}"
|
||||
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>
|
||||
</listbox>
|
||||
</window>
|
||||
|
|
Loading…
Reference in New Issue