valdevir 2016-09-29 20:27:31 +00:00
parent 4e5438b3cd
commit ca3b2be31d
1 changed files with 3 additions and 4 deletions

View File

@ -531,14 +531,13 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
} }
if (puntoVenta.getDateAbertura() != null) { if (puntoVenta.getDateAbertura() != null) {
dateAbertura.setValue(puntoVenta.getDateAbertura()); dateAbertura.setValue(puntoVenta.getDateAbertura());
} else {
dateAbertura.setValue(new Date());
} }
if (radAprobacionLatente.isChecked()) { if (radAprobacionLatente.isChecked()) {
dateFechamento.setValue(puntoVenta.getDateFechamento()); dateFechamento.setValue(puntoVenta.getDateFechamento());
rowDateFechamento.setVisible(true); rowDateFechamento.setVisible(true);
} }
} else {
dateAbertura.setValue(new Date());
} }
if (puntoVenta.getPuntoventaId() != null) { if (puntoVenta.getPuntoventaId() != null) {