For many libraries, when a lost item is paid for the library does not want the item back -- it should not check in, it should not get marked found, it should not generate a lost fee refund. Functionally, the patron has purchased the book and gets to keep it (should they find it). It would be helpful for Koha to automatically apply a withdrawn status when an item is paid, similar to the UpdateItemLostStatusWhenPaid functionality added in Bug 22740.
Created attachment 192137 [details] [review] Bug 41730: Add ability to update item withdrawn status when lost item paid This patch implements a new system preference, "UpdateItemWithdrawnStatusWhenPaid" that allows you to specify the withdrawn status to change an item to when the outstanding balance of a lost item is paid. This preference is tied to the WITHDRAWN authorised values set. Test Plan: - Set one the system preference to any of the available values - Set an item as lost - Make a manual invoice for your desired user and assign it to the barcode of the above item - Save and Pay - Select Pay - Pay - Note that the withdrawn status of the item has changed to the status you set with the system preference - Check that when the system preference is left blank and no option is chosen, the withdrawn status does not update.
Created attachment 192138 [details] [review] Bug 41730: Unit tests