'Custom rows lookup
@param key: the key Field
@param values: the values
@param fields: unused (retained for API compatibility)'

def lookup_rows(self, key, values, fields=[]):

    s3db = current.s3db
    itable = s3db.inv_inv_item
    stable = s3db.supply_item
    left = stable.on((stable.id == itable.item_id))
    if (len(values) == 1):
        query = (key == values[0])
    else:
        query = key.belongs(values)
    rows = current.db(query).select(itable.id, stable.name, stable.um, itable.item_source_no, itable.bin, itable.expiry_date, itable.owner_org_id, left=left)
    self.queries += 1
    organisation_id = str(itable.owner_org_id)
    organisation_ids = [row[organisation_id] for row in rows]
    if organisation_ids:
        itable.owner_org_id.represent.bulk(organisation_ids)
    return rows
