Bug 25429: (QA follow-up) Add extra variable for days
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 1 Oct 2021 08:45:48 +0000 (08:45 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 6 Oct 2021 12:51:09 +0000 (14:51 +0200)
commit2c0f722a3ad944a3811199e67ab88af9cd55328b
treeccac19600be0d7393773fbab3366af29b1154116
parent5e4c7ce2129d093fb7a3f6415691814ea2bae36c
Bug 25429: (QA follow-up) Add extra variable for days

I think it is a bit more clear to use another variable for the
number of days from the preferences than overwriting the flag
variable.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tested by adding an authval for LOST.
Filling prefs ClaimReturnedLostValue, CleanUpDatabaseReturnClaims.
Claiming a return, resolving it. Setting date back via SQL.
Running the script with -v --return-claims, toggling --confirm.
The claim is counted and deleted with confirm.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
misc/cronjobs/cleanup_database.pl