-remoção de validação desnecessária
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@24341 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
796edc5c94
commit
e4f8447a97
|
@ -838,23 +838,10 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
puntoVenta.setUsuarioBancario(null);
|
||||
}
|
||||
|
||||
List<PuntoVenta> lsPv = puntoVentaService.buscar(puntoVenta.getNombpuntoventa() , puntoVenta.getNumPuntoVenta());
|
||||
|
||||
boolean podeSalvar = false;
|
||||
|
||||
if (lsPv.isEmpty()) {
|
||||
podeSalvar = true;
|
||||
}
|
||||
for (PuntoVenta pv : lsPv) {
|
||||
if (pv.getPuntoventaId().equals(puntoVenta.getPuntoventaId())) {
|
||||
podeSalvar = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (podeSalvar) {
|
||||
if (cmbColonia.getSelectedItem() != null) {
|
||||
puntoVenta.setColonia((Colonia) cmbColonia.getSelectedItem().getValue());
|
||||
}
|
||||
|
||||
puntoVenta.setActivo(Boolean.TRUE);
|
||||
puntoVenta.setFecmodif(Calendar.getInstance().getTime());
|
||||
puntoVenta.setUsuarioId(UsuarioLogado.getUsuarioLogado().getUsuarioId());
|
||||
|
@ -1007,12 +994,7 @@ public class EditarPuntoVentaController extends MyGenericForwardComposer {
|
|||
Messagebox.OK, Messagebox.INFORMATION);
|
||||
|
||||
closeWindow();
|
||||
} else {
|
||||
Messagebox.show(
|
||||
Labels.getLabel("MSG.Registro.Existe"),
|
||||
Labels.getLabel("editarPuntoVentaController.window.title"),
|
||||
Messagebox.OK, Messagebox.EXCLAMATION);
|
||||
}
|
||||
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
log.error("editarPuntoVentaController: ", ex);
|
||||
|
|
Loading…
Reference in New Issue