fixes bug#22051

qua:
dev:Valdir

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@106554 d1611594-4594-4d17-8e1d-87c2c4800839
master
valdevir 2021-05-05 19:10:15 +00:00
parent 6ff12dc58d
commit 0aa8c25bc8
2 changed files with 17 additions and 0 deletions

View File

@ -148,6 +148,9 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
private Checkbox chkIndClientePcd; private Checkbox chkIndClientePcd;
private Intbox qtdeLimiteNaoEmbarque; private Intbox qtdeLimiteNaoEmbarque;
private Radio radioCheckinSim;
private Radio radioCheckinNao;
private Row rowComportamentoVendaAberto; private Row rowComportamentoVendaAberto;
@ -175,6 +178,7 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
popularCombobox(cmbIndGeneraFeriado); popularCombobox(cmbIndGeneraFeriado);
if ((categoriaDescuento.getDescuentoimporte() != null) && (!categoriaDescuento.getDescuentoimporte().equals(BigDecimal.ZERO))) { if ((categoriaDescuento.getDescuentoimporte() != null) && (!categoriaDescuento.getDescuentoimporte().equals(BigDecimal.ZERO))) {
radioImp.setSelected(true); radioImp.setSelected(true);
descuentoPorc.setDisabled(true); descuentoPorc.setDisabled(true);
@ -336,6 +340,7 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
if (categoriaDescuento.getCategoria().getCategoriaId().equals(1)) { if (categoriaDescuento.getCategoria().getCategoriaId().equals(1)) {
desabilitarItensCategoriaNormal(); desabilitarItensCategoriaNormal();
} }
radioCheckinNao.setChecked(Boolean.TRUE);
} }
/** /**
* *
@ -445,6 +450,8 @@ public class EditarConfiguracionCategoriaDatosCategoriaController extends MyGene
categoriaDescuento.setIndVentaSolamenteReserva(Boolean.FALSE); categoriaDescuento.setIndVentaSolamenteReserva(Boolean.FALSE);
} }
categoriaDescuento.setIndCheckinAutomatico(radioCheckinSim.isSelected() ? Boolean.TRUE : Boolean.FALSE );
if(rdVendaAntecipadaKMSi.isChecked()) { if(rdVendaAntecipadaKMSi.isChecked()) {
spnKM.getValue(); spnKM.getValue();
tbTempoAteKM.getValue(); tbTempoAteKM.getValue();

View File

@ -86,6 +86,16 @@
maxValue="100" constraint="no empty" width="50%" maxlength="9" maxValue="100" constraint="no empty" width="50%" maxlength="9"
value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoporc,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" /> value="@{winEditarConfiguracionCategoriasDatosCategoria$composer.categoriaDescuento.descuentoporc,converter=com.rjconsultores.ventaboletos.web.utilerias.StringDecimalToDecimalConverter}" />
</row> </row>
<row spans="1,3">
<label
value="${c:l('editarConfiguracionCategoriaController.checkIn.value')}" />
<radiogroup Id="radioGroupcheckin">
<radio id="radioCheckinSim"
label="${c:l('editarConfiguracionCategoriaController.checkInSim.value')}" />
<radio id="radioCheckinNao"
label="${c:l('editarConfiguracionCategoriaController.checkInNao.value')}" />
</radiogroup>
</row>
<row> <row>
<label <label
value="${c:l('editarConfiguracionCategoriaController.lblVendaAberto.value')}" /> value="${c:l('editarConfiguracionCategoriaController.lblVendaAberto.value')}" />