We want to be able to use this script to expiry all patrons who have not used their account in the last 12 months. At the moment, we cannot filter by all of the below criteria - lastseen issuedate reservedate 'timestamp' (in accountline) Essentially, if there has been been no measurable activity on the patron's record we want to expiry the patron 12 months from the date of last activity. This can be done using a koha report but becomes manual which is not ideal as this used to be an automated daily script in our old library system.