Open tmcelrath opened 3 months ago
From @proceps: returned loans are not overdue. Probably, there should be another option (active/returned).
We have 4 dates on each loan: date_requested; date_sent; date_return_expected; date_closed. If there are filtering option for each of those date, you should be able to get all information. Loans without date_closed should give you a list of active loans.
Waiting on TW development: https://github.com/SpeciesFileGroup/taxonworks/issues/3729
When I use Filter loans to search for:
All loans: 3547 loans: https://sfg.taxonworks.org/tasks/loans/filter?per=50&page=1
Overdue loans: 645 loans: https://sfg.taxonworks.org/tasks/loans/filter?per=50&overdue=true&page=1
Not overdue loans: 68 loans: https://sfg.taxonworks.org/tasks/loans/filter?per=50&overdue=false&page=1
Loans are boolean, either overdue or not overdue. We therefore have 2834 loans that are neither - which is impossible. But I cannot search for them. I THINK it is because they are missing some of the "Dates" to calculate these values, since they were legacy imported. @mjy1 @proceps we need a way to find these via loan filter, or we need to go through the loans 1 by 1 and fill out documentation.