fixes bug #6890
git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Model/trunk/modelWeb@50740 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
01adb56280
commit
59b62a3d19
|
@ -26,6 +26,7 @@ import javax.persistence.SequenceGenerator;
|
|||
import javax.persistence.Table;
|
||||
import javax.persistence.Temporal;
|
||||
import javax.persistence.TemporalType;
|
||||
import javax.persistence.Transient;
|
||||
|
||||
import org.hibernate.annotations.Where;
|
||||
|
||||
|
@ -479,4 +480,16 @@ public class Cliente implements Serializable {
|
|||
public String toString() {
|
||||
return "com.rjconsultores.ventaboletos.entidad.Cliente[ clienteId=" + clienteId + " ]";
|
||||
}
|
||||
|
||||
@Transient
|
||||
public List<ClienteFidelidad> getListClienteFidelidadActivos() {
|
||||
List<ClienteFidelidad> lsActivos = new ArrayList<ClienteFidelidad>();
|
||||
for (ClienteFidelidad clienteFidelidad : getListClienteFidelidad()) {
|
||||
if(clienteFidelidad.getActivo() && clienteFidelidad.getTarjetaFidelidad().getActivo()) {
|
||||
lsActivos.add(clienteFidelidad);
|
||||
}
|
||||
}
|
||||
return lsActivos;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -125,4 +125,5 @@ public class ClienteFidelidad implements Serializable {
|
|||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue