Merge pull request 'fixes bug #AL-2209' (!115) from AL-2209 into master

Reviewed-on: http://18.235.188.113:3000/adm/VentaBoletosAdm/pulls/115
master 1.0.92
pinheiro 2023-04-01 02:19:36 +00:00
commit 59d5feea31
3 changed files with 12 additions and 7 deletions

View File

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

View File

@ -310,10 +310,15 @@ public class EditarFormaPagoController extends MyGenericForwardComposer {
formaPago.setIndProcessoEstorno(chkIndEstorno.isChecked());
formaPago.setIndVoucherRodoviaria(chkIndVoucherRodoviaria.isChecked());
formaPago.setIndTransferenciaReativacao(chkIndTransferenciaReativacao.isChecked());
formaPago.setValorDesconto(valorDescontoBox.getValue());
if(radioPor.isChecked()) {
formaPago.setPercentualDesconto(percentualDescontoBox.getValue());
formaPago.setIndPercentualDesconto(radioPor.isChecked() ? true : false);
formaPago.setValorDesconto(null);
formaPago.setIndPercentualDesconto(true);
}else {
formaPago.setIndPercentualDesconto(false);
formaPago.setValorDesconto(valorDescontoBox.getValue());
formaPago.setPercentualDesconto(null);
}
if (formaPago.getFormapagoId() == null) {
List<FormaPago> lsFP =

View File

@ -144,14 +144,14 @@
<label
value="${c:l('editarFormaPagoController.percentualDescontoFormaPagamento.label')}" />
<decimalbox id="percentualDescontoBox"
format="##,##%" constraint="no negative" maxlength="5" width="98%"
format="##,##%" constraint="no negative" maxlength="6" width="98%"
value="@{winEditarFormaPago$composer.formaPago.percentualDesconto}" />
</row>
<row id="rowValorDesconto">
<label value="${c:l('editarFormaPagoController.valorDescontoFormaPagamento.label')}" />
<decimalbox id="valorDescontoBox"
width="98%" constraint="no negative" maxlength="5" format="#,##0.00"
width="98%" constraint="no negative" maxlength="6" format="#,##0.00"
value="@{winEditarFormaPago$composer.formaPago.valorDesconto}" />
</row>