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()) {
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,15 +211,16 @@ public class EditarPricingDiaController extends MyGenericForwardComposer {
|
||||||
pricingDia.setIndsabado(rdSab.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
pricingDia.setIndsabado(rdSab.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||||
pricingDia.setInddomingo(rdDom.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
pricingDia.setInddomingo(rdDom.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
||||||
|
|
||||||
pricingDia.setIndfecventa(rdFecVenta.isChecked() ? Boolean.TRUE : Boolean.FALSE);
|
pricingDia.setIndfecventa(rdFecVenta == null ? Boolean.FALSE :
|
||||||
pricingDia.setIndfecviaje(rdFecViaje.isChecked() ? Boolean.TRUE : 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.setHorarioinicio(DateUtil.getFecInicio(horarioinicio.getValue()).getTime());
|
||||||
pricingDia.setHorariofin(DateUtil.getFecInicio(horariofin.getValue()).getTime());
|
pricingDia.setHorariofin(DateUtil.getFecInicio(horariofin.getValue()).getTime());
|
||||||
|
|
||||||
if (noTraslapa()) {
|
if (noTraslapa()) {
|
||||||
if (pricingDia.getPricingdiaId() != null) {
|
if (pricingDia.getPricingdiaId() != null) {
|
||||||
|
|
||||||
pricingDiaService.actualizacion(pricingDia);
|
pricingDiaService.actualizacion(pricingDia);
|
||||||
pricingDiaList.updateItem(pricingDia);
|
pricingDiaList.updateItem(pricingDia);
|
||||||
} else {
|
} else {
|
||||||
|
@ -226,12 +229,14 @@ public class EditarPricingDiaController extends MyGenericForwardComposer {
|
||||||
}
|
}
|
||||||
closeWindow();
|
closeWindow();
|
||||||
} else {
|
} else {
|
||||||
Messagebox.show(Labels.getLabel("editarPricingController.MSG.traslapa"), Labels.getLabel("editarPricingController.windowDia.title"), Messagebox.OK,
|
Messagebox.show(Labels.getLabel("editarPricingController.MSG.traslapa"),
|
||||||
Messagebox.EXCLAMATION);
|
Labels.getLabel("editarPricingController.windowDia.title"),
|
||||||
|
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
log.error(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>
|
<hbox>
|
||||||
<radio id="rdFecViaje"
|
<radio id="rdFecViaje"
|
||||||
label="${c:l('editarPricingController.ckFecViagem.value')}"
|
label="${c:l('editarPricingController.ckFecViagem.value')}"
|
||||||
checked="false" />
|
checked="true" />
|
||||||
<radio id="rdFecVenta"
|
<radio id="rdFecVenta"
|
||||||
label="${c:l('editarPricingController.ckFecCompra.value')}"
|
label="${c:l('editarPricingController.ckFecCompra.value')}"
|
||||||
checked="false" />
|
checked="false" />
|
||||||
|
|
Loading…
Reference in New Issue