Bug 40742

Summary: Add ability to anonymize resolved accountlines
Product: Koha Reporter: Sarah Cornell <sbcornell>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: cj.lynce, robin
Version: unspecified   
Hardware: All   
OS: All   
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Sarah Cornell 2025-09-02 18:08:23 UTC
Patron information is saved in the accountlines table indefinitely even if the charge was resolved.  It would increase patron privacy if we could anonymize accountlines when they have been resolved, either immediately or after a set period of time. This could be based on the values in either amountoutstanding, status, or another field.
Comment 1 CJ Lynce 2025-09-02 20:33:29 UTC
I have thought about the same thing, and agree it would be helpful in maintaining patron privacy. Some transactions, like Lost item charges, and automatic lost item fee refunds, could be scrubbed immediately (the same way 'issues' are scrubbed after return). 

But other types, like in the case of a manual payment for a book, the information on the title and payment may need to be preserved for a little bit to allow for refunds if the library allows (my library allows for a refund within 6 months if the book is found). Having different policies for different transaction types might be difficult.