I was giving some thought to this today and decided to try deleting a copy via the database that still had an open circ.
To my surprise, it was successful in marking the item deleted = true (following the "protect_copy_delete" rule, of course). I think this is what then frees up the barcode for use elsewhere, like the situation Jason presented.
Would a new rule on asset.copy, preventing you from marking an item "deleted = true" when it's referenced by an action.circulation row that is unclosed appropriately resolve this?
I was giving some thought to this today and decided to try deleting a copy via the database that still had an open circ.
To my surprise, it was successful in marking the item deleted = true (following the "protect_ copy_delete" rule, of course). I think this is what then frees up the barcode for use elsewhere, like the situation Jason presented.
Would a new rule on asset.copy, preventing you from marking an item "deleted = true" when it's referenced by an action.circulation row that is unclosed appropriately resolve this?