Summary: | You should not be allowed to delete a record with open orders attached | ||
---|---|---|---|
Product: | Koha | Reporter: | Nick Clemens (kidclamp) <nick> |
Component: | Acquisitions | Assignee: | Kyle M Hall (khall) <kyle> |
Status: | RESOLVED DUPLICATE | QA Contact: | Testopia <testopia> |
Severity: | normal | ||
Priority: | P5 - low | CC: | andrew, cunha, jonathan.druart, jzairo, severine.queune, veron |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
See Also: |
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10869 https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=10758 |
||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: |
Description
Nick Clemens (kidclamp)
2016-07-07 16:23:05 UTC
Nick, There is already a big warning when you try to delete a record used in orders. I do not understand why we should block the user to do it. (In reply to Jonathan Druart from comment #1) > Nick, > There is already a big warning when you try to delete a record used in > orders. > I do not understand why we should block the user to do it. Hmm...yes you do get a big warning, I guess I still find it bothersome that the user can't fix it once they have made this decision, maybe instead of preventing delete we should add a method for reattaching the order to a record? Also, if you 'Delete items in a batch' and choose 'Delete record if no items remain' you do not receive the warning Does it warn on the cataloguing side too? I have had libraries deleting records who are 'on order' by accident a few times - you will need SQL then to clean it up. I don't think a warning is enough. We should block users from deleting records with open orders attached because it creates a situation where manual changes to the database must be done to repair orders where the record has been deleted. Consider that a library may have multiple divisions, where one librarian is "cleaning up" records by deleting them, and the other is ordering items and keeps finding his or her on order records are suddenly deleted. Depending on the size of the library system, it could take the librarian quite a while to find out why those records are suddenly gone. (In reply to Jonathan Druart from comment #1) > Nick, > There is already a big warning when you try to delete a record used in > orders. > I do not understand why we should block the user to do it. Perhaps we need a new user permission or system preference to prevent deletion of records with open orders on them. I think it's ok to block users from deleting and ask them to cancel the orders first. Maybe with a link to the order in acq if they have the right permission? Separate problem, but related to deleting the records: Once you deleted the record the cancelled order remains visible, but has no title anymore. That's not helpful and we can't delete cancelled orders either. The whole topic of how to handle deletes is something we should tackle. *** This bug has been marked as a duplicate of bug 27893 *** Marking this as a duplicate of a newer bug as the newer bug has a little work on it already. |