Bug 41741 - UpdateItemLostStatusWhenPaid should not apply to cancelled charges
Summary: UpdateItemLostStatusWhenPaid should not apply to cancelled charges
Status: NEW
Alias: None
Product: Koha
Classification: Unclassified
Component: Fines and fees (show other bugs)
Version: 25.05
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-30 20:02 UTC by Sara Brown
Modified: 2026-01-30 20:31 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sara Brown 2026-01-30 20:02:28 UTC
If a library is using UpdateItemLostStatusWhenPaid to automatically update items' lost status when accepting payment, the status change also happens for charges that are cancelled from the Transactions tab of a patron's account. 

A separate system preference could be created for cancelled charges, but at a minimum, lost items whose charges are cancelled (not paid) shouldn't have their status automatically updated by UpdateItemLostStatusWhenPaid.
Comment 1 Sara Brown 2026-01-30 20:31:20 UTC
This status change happens even if the item already has a status of 'Available'.
 
This may be a somewhat niche set of circumstances, but it is an issue for some libraries whose payments are handled by centralized offices (such as school/university libraries).

Settings:
-UpdateItemLostStatusWhenPaid is set to 'Lost and paid for'
-Lost item charges are *not* automatically removed from patron accounts when items are returned 

Scenario:
-Patron checks out an item
-Item is marked lost
-The account charge is reported to the centralized billing office
-Before the charge has been paid, the item is returned - this changes its status to 'Available'
-When the library cancels the charge from the patron's Transactions tab, the item status flips to 'Lost and paid for'. The same thing happens if the charge is discounted from the Transactions tab.

Note that this library uses writeoffs for items that are still lost but whose full cost will not be charged, so they don't want to use it for returned items whose charges should be entirely cleared.