Foi inserido o parametro para a JCA que habilita o ponto de venda no cadastro da AIDF e que não seja obrigatorio
fixes bug#10783 dev:julio qua:bruno.silva git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@80376 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
e462a2620e
commit
a769ce2540
|
@ -156,8 +156,10 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
|||
}
|
||||
}
|
||||
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||
cmbPuntoVenta.setConstraint("no empty");;
|
||||
}
|
||||
rowPuntoVenta.setVisible(true);
|
||||
PuntoVenta puntoVenta = aidf.getPuntoVenta();
|
||||
if (puntoVenta != null) {
|
||||
|
@ -234,7 +236,9 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
|||
txtFormfinal.getValue();
|
||||
txtDocFiscal.getValue();
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
cmbPuntoVenta.getValue();
|
||||
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||
cmbPuntoVenta.getValue();
|
||||
}
|
||||
}
|
||||
cmbTipoValidaVenta.getValue();
|
||||
|
||||
|
@ -259,14 +263,16 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
|||
especieId = aidf.getAidfEspecie().getAidfespId();
|
||||
}
|
||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
||||
aidf.setPuntoVenta(puntoVenta);
|
||||
if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoDocFiscalEstadoAgencia"),
|
||||
Labels.getLabel("editarAidfController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
||||
aidf.setPuntoVenta(puntoVenta);
|
||||
if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarAidfController.btnSalvar.MSG.conflitoDocFiscalEstadoAgencia"),
|
||||
Labels.getLabel("editarAidfController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (!validarDocFiscalEstado(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getEstado())) {
|
||||
|
|
|
@ -112,7 +112,7 @@
|
|||
<row id="rowPuntoVenta" visible="false">
|
||||
<label
|
||||
value="${c:l('busquedaAidfController.lbPuntoVenta.value')}" />
|
||||
<combobox id="cmbPuntoVenta" constraint="no empty"
|
||||
<combobox id="cmbPuntoVenta"
|
||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||
mold="rounded" buttonVisible="true" width="70%"
|
||||
selectedItem="@{winEditarAidf$composer.aidf.puntoVenta}" />
|
||||
|
|
Loading…
Reference in New Issue