HDTN-339427 - Stroh Hypercare: Mfg>Recipe - cannot remove Item if recipe used on Posted Invoice

Issue No: AR-21159
Created 4/12/2024 5:22:27 PM
Type Bug
Priority Blocker
Status Closed
Resolution Fixed
Fixed Version 22.2
Description HDTN-339427 - Customer Hypercare: Mfg>Recipe - cannot remove Item if recipe used on Posted Invoice   Stroh iRelyProd 01/99 is on version 22.2.0411.830. There was an issue encountered in 01, and I have been able to replicate the issue in 99.   Recipes exist for Customers. User is trying to remove an item from a Recipe, but when saving the Recipe they receive this error "The record you are trying to delete is being used". It appears that if a Recipe has been used on an Invoice and that invoice has been Posted, then it isn't allowing the Recipe to be edited to remove an item. I am able to add a new Item to the Recipe and save without error if the recipe exists on a posted invoice. I am entering this as a Blocker because Stroh is not able to modify and save the Recipe to be added on a Sales Order, and there are multiple recipes that need to be updated due to the amount of time that has elapsed since entering them into 01 and going parallel on iRely.     *Sample:*   I removed the FORTLG item from this Recipe, and receive this error upon Save:   !https://helpdesk.irely.com/iRelyi21Live/Export/CRM/16b2b8d0-463a-4e72-84d3-c91ead028113.png!   Before I had used this recipe on a posted invoice, I did confirm that I was able to remove the Item and Save the Recipe without error, so it does appear to be associated with the posted invoice.     Steps:   1. Create a Recipe   2. Create an Invoice   3. Add the Recipe in the invoice in step 2   4. Update the Recipe in step 1 - add/delete an item     *ACCEPTANCE:*   1. Allow adding or removing of items in the recipe even if it has been added in the invoice   2. Remove the constraints for the Item   !pastedImage_d269927_1.jpg!   3. Add a constraint for the Recipe header in the invoice   4. Make sure that the invoice printout is printing correctly using the One Line Print