Pricing - Obrigatoriedade de cadastro de porcentagem/valo
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@32272 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
25ca568e0a
commit
33cc3e37f3
|
@ -516,7 +516,7 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
radioImp.setChecked(true);
|
||||
onClick$radioImp(null);
|
||||
} else {
|
||||
radioPor.setChecked(true);
|
||||
|
||||
btnNovoImporte.setVisible(false);
|
||||
btnApagarImporte.setVisible(false);
|
||||
btnModificarImporte.setVisible(false);
|
||||
|
@ -527,7 +527,6 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
|
||||
salvo = true;
|
||||
} else {
|
||||
radioPor.setChecked(true);
|
||||
|
||||
btnNovoImporte.setVisible(false);
|
||||
btnApagarImporte.setVisible(false);
|
||||
|
@ -751,27 +750,6 @@ public class EditarPricingController extends MyGenericForwardComposer {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (radioImp.isChecked()) {
|
||||
if (pricingImporteList.getModel().getSize() == 0) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarPricingController.MSG.cantImportePricingVazio"),
|
||||
Labels.getLabel("editarPricingController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
if ((descuentoporcsen.getValue() == null) || (descuentoporcsen.getValue().equals("")) || (descuentoporcsen.getValueDecimal().compareTo(BigDecimal.ZERO) == 0)) {
|
||||
if ((pricingAsientoList.getData().length == 0) && (pricingOcupaAntecipaList.getData().length == 0)) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarPricingController.MSG.porcentajeSencilloVazio"),
|
||||
Labels.getLabel("editarPricingController.window.title"),
|
||||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
return false;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (pricingVigenciaList.getModel().getSize() == 0) {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("editarPricingController.MSG.vigenciasVazio"),
|
||||
|
|
Loading…
Reference in New Issue