Bug 36731

Summary: Delete cancelled order line that still refers to bibliographic record
Product: Koha Reporter: Marcel de Rooy <m.de.rooy>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: emily.lamancusa, kebliss, michaela.sieber
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:
Bug Depends on: 18360    
Bug Blocks:    

Description Marcel de Rooy 2024-04-30 12:17:36 UTC
See bug 18360 comment18 and further.

Should we just leave the biblio record if any?
Or warn about it, perhaps even checking the number of linked orders, and allow to delete it anyway?
Comment 1 Marcel de Rooy 2024-04-30 12:26:30 UTC
Probably we should allow it since we do so for REST API too. In that case this report is about extending the warning with more information.
Comment 2 Emily Lamancusa (emlam) 2024-05-03 15:18:25 UTC
Seems reasonable to me to allow deletion of the order line without deleting the biblio record. If someone added a mistaken order line and wants to delete it, it's certainly possible that the biblio record is attached to other orders that are being kept, or may have current items that aren't linked to an order at all.

A warn seems like a good balance between not being too restrictive and giving an opportunity to catch "ghost" records (especially if the warn can include information on whether the biblio record has any other linked orders or existing items).