Bug 27965 - cleanup_database.pl should not remove old checkouts with unpaid fines
Summary: cleanup_database.pl should not remove old checkouts with unpaid fines
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Tools (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor (vote)
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on: 19008
Blocks:
  Show dependency treegraph
 
Reported: 2021-03-16 13:06 UTC by Joonas Kylmälä
Modified: 2021-03-23 10:26 UTC (History)
2 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joonas Kylmälä 2021-03-16 13:06:44 UTC
Currently "cleanup_database.pl --old-issues" removes also checkouts that contain unpaid fines. This will remove the checkout information from the fine accountlines in /cgi-bin/koha/members/boraccount.pl?borrowernumber=XXXX page which are crucial to keep so that the library is able to tell the patron where did this fine came from and why it needs to be paid. At least there should be an parameter to cleanup_database.pl to prevent the deletion of such checkouts but maybe we should even do this the default behavior?

Classifying this as a minor bug because it could be debatable whether or not this is feature or bug. Although, I cannot think why any library would want those checkouts with fines deleted.