public Collection<Bill> getByClientID(int clientID) { Collection<Bill> all = _gateway.getAll(); ArrayList<Bill> results = new ArrayList<Bill>(); Client client; for (Bill q : all) { client = q.getClient(); if (client != null && client.getID() == clientID) { results.add(q); } } return results; }
public Collection<Bill> getAll() { return _gateway.getAll(); }
public Collection<Package> getProductPackageList() { return _gateway.getAll(); }