fixes bug#14816

dev:lucas

qua: 

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@95449 d1611594-4594-4d17-8e1d-87c2c4800839
master
lucas.taia 2019-07-04 21:49:28 +00:00
parent 99f90901a7
commit c524c2a28f
5 changed files with 35 additions and 1 deletions

View File

@ -76,6 +76,7 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
private MyTextboxDecimal txtPorcdescuentoPedagio; private MyTextboxDecimal txtPorcdescuentoPedagio;
private MyTextboxDecimal txtPorcdescuentoSeguro; private MyTextboxDecimal txtPorcdescuentoSeguro;
private MyTextboxDecimal txtPorcdescuentoTaxaEmbarque; private MyTextboxDecimal txtPorcdescuentoTaxaEmbarque;
private MyTextboxDecimal txtPorcdescuentoSeguroOpcional;
private Longbox txtNumfolioinicio; private Longbox txtNumfolioinicio;
private Longbox txtNumfoliofinal; private Longbox txtNumfoliofinal;
private Textbox txtSerie; private Textbox txtSerie;
@ -215,6 +216,14 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
this.txtPorcdescuentoTaxaEmbarque = txtPorcdescuentoTaxaEmbarque; this.txtPorcdescuentoTaxaEmbarque = txtPorcdescuentoTaxaEmbarque;
} }
public MyTextboxDecimal getTxtPorcdescuentoSeguroOpcional() {
return txtPorcdescuentoSeguroOpcional;
}
public void setTxtPorcdescuentoSeguroOpcional(MyTextboxDecimal txtPorcdescuentoSeguroOpcional) {
this.txtPorcdescuentoSeguroOpcional = txtPorcdescuentoSeguroOpcional;
}
public Button getBtnAdicionarCuponSecretaria() { public Button getBtnAdicionarCuponSecretaria() {
return btnAdicionarCuponSecretaria; return btnAdicionarCuponSecretaria;
} }
@ -456,11 +465,14 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
return; return;
} }
try { try {
txtNumfolioinicio.getValue();
txtNumfoliofinal.getValue();
BigDecimal porcdescuento = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuento.getValue())); BigDecimal porcdescuento = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuento.getValue()));
BigDecimal porcdescuentoOutros = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoOutros.getValue())); BigDecimal porcdescuentoOutros = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoOutros.getValue()));
BigDecimal porcdescuentoPedagio = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoPedagio.getValue())); BigDecimal porcdescuentoPedagio = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoPedagio.getValue()));
BigDecimal porcdescuentoSeguro = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoSeguro.getValue())); BigDecimal porcdescuentoSeguro = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoSeguro.getValue()));
BigDecimal porcdescuentoTaxaEmbarque = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoTaxaEmbarque.getValue())); BigDecimal porcdescuentoTaxaEmbarque = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoTaxaEmbarque.getValue()));
BigDecimal porcdescuentoSeguroOpcional = BigDecimal.valueOf(Double.parseDouble(txtPorcdescuentoSeguroOpcional.getValue()));
Long numfolioinicio = txtNumfolioinicio.getValue(); Long numfolioinicio = txtNumfolioinicio.getValue();
Long numfoliofinal = txtNumfoliofinal.getValue(); Long numfoliofinal = txtNumfoliofinal.getValue();
String serie = null; String serie = null;
@ -526,6 +538,7 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
cd.setPorcdescuentopedagio(porcdescuentoPedagio); cd.setPorcdescuentopedagio(porcdescuentoPedagio);
cd.setPorcdescuentoseguro(porcdescuentoSeguro); cd.setPorcdescuentoseguro(porcdescuentoSeguro);
cd.setPorcdescuentotaxaembarque(porcdescuentoTaxaEmbarque); cd.setPorcdescuentotaxaembarque(porcdescuentoTaxaEmbarque);
cd.setPorcdescuentoseguroopcional(porcdescuentoSeguroOpcional);
cd.setNumfolioinicio(numfolioinicio); cd.setNumfolioinicio(numfolioinicio);
cd.setNumfoliofinal(numfoliofinal); cd.setNumfoliofinal(numfoliofinal);
cd.setSerie(serie); cd.setSerie(serie);
@ -559,6 +572,7 @@ public class EditarSecretariaController extends MyGenericForwardComposer {
txtPorcdescuentoPedagio.setText("0"); txtPorcdescuentoPedagio.setText("0");
txtPorcdescuentoSeguro.setText("0"); txtPorcdescuentoSeguro.setText("0");
txtPorcdescuentoTaxaEmbarque.setText("0"); txtPorcdescuentoTaxaEmbarque.setText("0");
txtPorcdescuentoSeguroOpcional.setText("0");
txtNumfolioinicio.setValue(null); txtNumfolioinicio.setValue(null);
txtNumfoliofinal.setValue(null); txtNumfoliofinal.setValue(null);
txtSerie.setValue(null); txtSerie.setValue(null);

View File

@ -101,6 +101,14 @@ public class RenderCuponSecretaria implements ListitemRenderer {
} }
lc.setParent(lstm); lc.setParent(lstm);
BigDecimal porcentagemseguroOpcional = cuponSecretaria.getPorcdescuentoseguroopcional();
if (porcentagemseguroOpcional != null) {
lc = new Listcell(porcentagemseguroOpcional.setScale(2).toString());
} else {
lc = new Listcell("");
}
lc.setParent(lstm);
lstm.setAttribute("data", cuponSecretaria); lstm.setAttribute("data", cuponSecretaria);
} }

View File

@ -4702,6 +4702,7 @@ editarSecretariaController.lbPorcDescuentoOutros.value=% Outros
editarSecretariaController.lbPorcDescuentoPedagio.value=% Peaje editarSecretariaController.lbPorcDescuentoPedagio.value=% Peaje
editarSecretariaController.lbPorcDescuentoSeguro.value=% Seguro editarSecretariaController.lbPorcDescuentoSeguro.value=% Seguro
editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value=% Tasa abordaje editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value=% Tasa abordaje
editarSecretariaController.lbPorcDescuentoSeguroOpcional.value=% Seguro opcional
editarSecretariaController.Impression.value = Valor a imprimir editarSecretariaController.Impression.value = Valor a imprimir
editarSecretariaController.PrecioTotal.value = Precio total editarSecretariaController.PrecioTotal.value = Precio total
editarSecretariaController.PrecioDescuento.value = Precio menos descuento por cobrar editarSecretariaController.PrecioDescuento.value = Precio menos descuento por cobrar

View File

@ -4925,6 +4925,7 @@ editarSecretariaController.lbPorcDescuentoOutros.value=% Outros
editarSecretariaController.lbPorcDescuentoPedagio.value=% Pedagio editarSecretariaController.lbPorcDescuentoPedagio.value=% Pedagio
editarSecretariaController.lbPorcDescuentoSeguro.value=% Seguro editarSecretariaController.lbPorcDescuentoSeguro.value=% Seguro
editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value=% Taxa Embarque editarSecretariaController.lbPorcDescuentoTaxaEmbarque.value=% Taxa Embarque
editarSecretariaController.lbPorcDescuentoSeguroOpcional.value=% Seguro Opcional
editarSecretariaController.Impression.value = Valor a Imprimir editarSecretariaController.Impression.value = Valor a Imprimir
editarSecretariaController.PrecioTotal.value = Preço total editarSecretariaController.PrecioTotal.value = Preço total
editarSecretariaController.PrecioDescuento.value = Preço menos desconto por cobrar editarSecretariaController.PrecioDescuento.value = Preço menos desconto por cobrar

View File

@ -6,7 +6,7 @@
<zk xmlns="http://www.zkoss.org/2005/zul"> <zk xmlns="http://www.zkoss.org/2005/zul">
<window id="winEditarSecretaria" border="normal" <window id="winEditarSecretaria" border="normal"
apply="${editarSecretariaController}" width="650px" height="550px" apply="${editarSecretariaController}" width="750px" height="550px"
contentStyle="overflow:auto" contentStyle="overflow:auto"
title="${c:l('editarSecretariaController.window.title')}"> title="${c:l('editarSecretariaController.window.title')}">
<toolbar> <toolbar>
@ -195,6 +195,14 @@
value="0" value="0"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" /> use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</row> </row>
<row>
<label
value="${c:l('editarSecretariaController.lbPorcDescuentoSeguroOpcional.value')}" />
<textbox id="txtPorcdescuentoSeguroOpcional"
maxValue="100" maxlength="6" value="0"
use="com.rjconsultores.ventaboletos.web.utilerias.MyTextboxDecimal" />
</row>
</rows> </rows>
</grid> </grid>
@ -229,6 +237,8 @@
label="${c:l('editarSecretariaController.lbPorcdescuentoSeguro.value')}" /> label="${c:l('editarSecretariaController.lbPorcdescuentoSeguro.value')}" />
<listheader image="/gui/img/create_doc.gif" <listheader image="/gui/img/create_doc.gif"
label="${c:l('editarSecretariaController.lbPorcdescuentoTaxaEmbarque.value')}" /> label="${c:l('editarSecretariaController.lbPorcdescuentoTaxaEmbarque.value')}" />
<listheader image="/gui/img/create_doc.gif"
label="${c:l('editarSecretariaController.lbPorcDescuentoSeguroOpcional.value')}" />
</listhead> </listhead>
</listbox> </listbox>
</tabpanel> </tabpanel>