fixes bug #8083
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@61342 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
6f0ad627a0
commit
d665eda909
|
@ -127,11 +127,18 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
|||
private Boolean isClone;
|
||||
|
||||
public Ruta() {
|
||||
super();
|
||||
indRutaCancelada = false;
|
||||
indBloqueoVtaAbierta= false;
|
||||
indSentidoIda =true;
|
||||
}
|
||||
|
||||
public Ruta(Integer rutaId, String descruta) {
|
||||
this();
|
||||
this.rutaId = rutaId;
|
||||
this.descruta = descruta;
|
||||
}
|
||||
|
||||
public static Ruta clone(Ruta other) {
|
||||
Ruta ruta = new Ruta();
|
||||
ruta.setIsClone(Boolean.TRUE);
|
||||
|
@ -481,7 +488,10 @@ public class Ruta implements Serializable, Comparable<Ruta> {
|
|||
|
||||
@Override
|
||||
public String toString() {
|
||||
return this.getDescruta() + " - " + this.getRutaId();
|
||||
if(getDescruta() != null || getRutaId() != null) {
|
||||
return this.getDescruta() + " - " + this.getRutaId();
|
||||
}
|
||||
return " ";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue