Bug 40781

Summary: cancel_unfilled_holds.pl should skip cancelled holds
Product: Koha Reporter: Fridolin Somers <fridolin.somers>
Component: Command-line UtilitiesAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: minor    
Priority: P5 - low CC: robin
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36497
GIT URL: Change sponsored?: ---
Patch complexity: --- Documentation contact:
Documentation submission: Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Fridolin Somers 2025-09-10 09:05:41 UTC
Cronjob cancel_unfilled_holds.pl should skip already cancelled holds.

Currently it searches :
    my $holds = Koha::Holds->search( { branchcode => $branch } )->unfilled();

Verbose logs shows all cancelled holds from previous days.

Just skip ?