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
|
@ -157,7 +157,9 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||||
|
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||||
|
cmbPuntoVenta.setConstraint("no empty");;
|
||||||
|
}
|
||||||
rowPuntoVenta.setVisible(true);
|
rowPuntoVenta.setVisible(true);
|
||||||
PuntoVenta puntoVenta = aidf.getPuntoVenta();
|
PuntoVenta puntoVenta = aidf.getPuntoVenta();
|
||||||
if (puntoVenta != null) {
|
if (puntoVenta != null) {
|
||||||
|
@ -234,8 +236,10 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
txtFormfinal.getValue();
|
txtFormfinal.getValue();
|
||||||
txtDocFiscal.getValue();
|
txtDocFiscal.getValue();
|
||||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||||
|
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||||
cmbPuntoVenta.getValue();
|
cmbPuntoVenta.getValue();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
cmbTipoValidaVenta.getValue();
|
cmbTipoValidaVenta.getValue();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
@ -259,6 +263,7 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
especieId = aidf.getAidfEspecie().getAidfespId();
|
especieId = aidf.getAidfEspecie().getAidfespId();
|
||||||
}
|
}
|
||||||
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
if (ApplicationProperties.getInstance().exibirPuntoVentaCadastroAIDF()) {
|
||||||
|
if(ApplicationProperties.getInstance().isPuntoVentaCadastroAIDFObrigatorio()){
|
||||||
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
PuntoVenta puntoVenta = (PuntoVenta) cmbPuntoVenta.getSelectedItem().getValue();
|
||||||
aidf.setPuntoVenta(puntoVenta);
|
aidf.setPuntoVenta(puntoVenta);
|
||||||
if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) {
|
if (!validarDocFiscalPorEstadoAgencia(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getForminicial(), aidf.getFormfinal(), aidf.getEstado(), aidf.getPuntoVenta())) {
|
||||||
|
@ -268,6 +273,7 @@ public class EditarAidfController extends MyGenericForwardComposer {
|
||||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!validarDocFiscalEstado(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getEstado())) {
|
if (!validarDocFiscalEstado(aidf.getAidfId(), especieId, txtDocFiscal.getValue(), aidf.getEstado())) {
|
||||||
Messagebox.show(
|
Messagebox.show(
|
||||||
|
|
|
@ -112,7 +112,7 @@
|
||||||
<row id="rowPuntoVenta" visible="false">
|
<row id="rowPuntoVenta" visible="false">
|
||||||
<label
|
<label
|
||||||
value="${c:l('busquedaAidfController.lbPuntoVenta.value')}" />
|
value="${c:l('busquedaAidfController.lbPuntoVenta.value')}" />
|
||||||
<combobox id="cmbPuntoVenta" constraint="no empty"
|
<combobox id="cmbPuntoVenta"
|
||||||
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxPuntoVenta"
|
||||||
mold="rounded" buttonVisible="true" width="70%"
|
mold="rounded" buttonVisible="true" width="70%"
|
||||||
selectedItem="@{winEditarAidf$composer.aidf.puntoVenta}" />
|
selectedItem="@{winEditarAidf$composer.aidf.puntoVenta}" />
|
||||||
|
|
Loading…
Reference in New Issue