Bug 27901

Summary: Cancelling acq order does not delete item record, causes error
Product: Koha Reporter: Donna <bwsdonna>
Component: AcquisitionsAssignee: Bugs List <koha-bugs>
Status: CLOSED WORKSFORME QA Contact: Testopia <testopia>
Severity: major    
Priority: P5 - low CC: andrew, jonathan.druart, kelly, kgnerre, nathan.walker
Version: 20.05Keywords: regression
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:
Attachments: Screenshot of Error Code

Description Donna 2021-03-08 19:53:13 UTC
Prior to 20.05 when an order was cancelled from the basket, the item created when the order was placed was deleted also.  In 20.05, users now get the message: An error has occurred.
The order has been cancelled, although one or more items could not have been deleted.

To recreate:
1.  Add biblio and item to basket
2. Cancel the order and delete the biblio
3.  Get the error message
4. Verify that the Holdings table still shows the item, but the acq correctly shows the cancellation.
Comment 1 Nathan Walker 2021-03-09 13:32:38 UTC
Created attachment 117968 [details]
Screenshot of Error Code

Attached is a screenshot of the error Donna described for this bug. We received the error using the above-listed steps.
Comment 2 Katrin Fischer 2021-03-10 08:53:30 UTC
Can you tell if this happens since the update exactly? 
Does deleting items from other areas still work correctly?
Please also check the system information tab on the About page for any messages there!
Comment 3 Jonathan Druart 2021-03-11 13:56:28 UTC
I don't recreate the issue. Can you try on a sandbox and detail a bit more the different steps please?

> 2. Cancel the order and delete the biblio

Does it mean you click the "Cancel order and delete catalog record" link?
Comment 4 Jonathan Druart 2021-03-11 13:57:23 UTC
Was there a hold placed on the item or biblio?
Comment 5 Katrin Fischer 2022-11-16 23:35:42 UTC
There has been no feedback on the questions asked for over a year. I am closing this WORKSFORME.