Pricing dia - Erro ao aplicar pricing na venda
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@31704 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
8b729b88b1
commit
1bd4b5978e
|
@ -192,7 +192,9 @@ public class EditarPricingDiaController extends MyGenericForwardComposer {
|
|||
}
|
||||
|
||||
if (!rdFecViaje.isChecked() && !rdFecVenta.isChecked()) {
|
||||
Clients.alert(Labels.getLabel("EditarPricingDiaController.MSG.obligatorioData"), Labels.getLabel("editarPricingController.windowDia.title"), Messagebox.EXCLAMATION);
|
||||
Clients.alert(Labels.getLabel("EditarPricingDiaController.MSG.obligatorioData"),
|
||||
Labels.getLabel("editarPricingController.windowDia.title"),
|
||||
Messagebox.EXCLAMATION);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -209,15 +211,16 @@ public class EditarPricingDiaController extends MyGenericForwardComposer {
|
|||
pricingDia.setIndsabado(rdSab.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
pricingDia.setInddomingo(rdDom.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
|
||||
pricingDia.setIndfecventa(rdFecVenta.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
pricingDia.setIndfecviaje(rdFecViaje.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
pricingDia.setIndfecventa(rdFecVenta == null ? Boolean.FALSE :
|
||||
rdFecVenta.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
pricingDia.setIndfecviaje(rdFecViaje == null ? Boolean.FALSE :
|
||||
rdFecViaje.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||
|
||||
pricingDia.setHorarioinicio(DateUtil.getFecInicio(horarioinicio.getValue()).getTime());
|
||||
pricingDia.setHorariofin(DateUtil.getFecInicio(horariofin.getValue()).getTime());
|
||||
|
||||
if (noTraslapa()) {
|
||||
if (pricingDia.getPricingdiaId() != null) {
|
||||
|
||||
pricingDiaService.actualizacion(pricingDia);
|
||||
pricingDiaList.updateItem(pricingDia);
|
||||
} else {
|
||||
|
@ -226,12 +229,14 @@ public class EditarPricingDiaController extends MyGenericForwardComposer {
|
|||
}
|
||||
closeWindow();
|
||||
} else {
|
||||
Messagebox.show(Labels.getLabel("editarPricingController.MSG.traslapa"), Labels.getLabel("editarPricingController.windowDia.title"), Messagebox.OK,
|
||||
Messagebox.EXCLAMATION);
|
||||
Messagebox.show(Labels.getLabel("editarPricingController.MSG.traslapa"),
|
||||
Labels.getLabel("editarPricingController.windowDia.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error(ex);
|
||||
Clients.alert(Labels.getLabel("MSG.Error"), Labels.getLabel("editarPricingController.windowDia.title"), Messagebox.ERROR);
|
||||
Clients.alert(Labels.getLabel("MSG.Error"),
|
||||
Labels.getLabel("editarPricingController.windowDia.title"), Messagebox.ERROR);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
<hbox>
|
||||
<radio id="rdFecViaje"
|
||||
label="${c:l('editarPricingController.ckFecViagem.value')}"
|
||||
checked="false" />
|
||||
checked="true" />
|
||||
<radio id="rdFecVenta"
|
||||
label="${c:l('editarPricingController.ckFecCompra.value')}"
|
||||
checked="false" />
|
||||
|
|
Loading…
Reference in New Issue