[Koha-bugs] [Bug 27080] Add --statute-barred option to cleanup_database.pl to purge all fees where the item has been returned and the fee is older than the given number of days.
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Dec 2 08:47:58 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27080
Timothy Alexis Vass <timothy_alexis.vass at ub.lu.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #113939|0 |1
is obsolete| |
--- Comment #2 from Timothy Alexis Vass <timothy_alexis.vass at ub.lu.se> ---
Created attachment 114083
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=114083&action=edit
Bug 27080 - Add --statute-barred option to cleanup_database.pl to purge all
fees where the item has been returned and the fee is older than the given
number of days.
According to Swedish law, fees become statute-barred after 3 years.
With this option, we can use cleanup_database.pl to purge those from
accountlines.
NOTE: This commit also fixes indentations.
You can use the -w option with git to ignore space differences.
To test:
1) You will need a record in the accountlines table WHERE status = 'RETURNED'
AND amountoutstanding > 0.
2) Run ./misc/cronjobs/cleanup_database.pl --statute-barred DAYS
Where DAYS is 1 or greater. This will delete records from accountlines WHERE
date is DAYS day(s) or older.
3) Confirm that records have been deleted.
Sponsored-by: Lunds Universitetsbibliotek
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list