Bug 41730 - Automate change Withdrawn status when item is paid for
Summary: Automate change Withdrawn status when item is paid for
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Nick Clemens (kidclamp)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks: 41731
  Show dependency treegraph
 
Reported: 2026-01-28 20:36 UTC by Andrew Fuerste-Henry
Modified: 2026-01-28 21:43 UTC (History)
1 user (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41730: Add ability to update item withdrawn status when lost item paid (7.10 KB, patch)
2026-01-28 21:16 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 41730: Unit tests (4.44 KB, patch)
2026-01-28 21:16 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Fuerste-Henry 2026-01-28 20:36:25 UTC
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.
Comment 1 Nick Clemens (kidclamp) 2026-01-28 21:16:54 UTC
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.
Comment 2 Nick Clemens (kidclamp) 2026-01-28 21:16:56 UTC
Created attachment 192138 [details] [review]
Bug 41730: Unit tests