Deleting products from its article or recipe database is naturally secure, since these can be used in parent recipes, or even included in an order, production or sale operation in progress.
The action of deleting a product is therefore only possible if it is not used or exploited.
The deletion attempt will trigger a notification informing the user of the type of use of the product.
The objective is to identify in which recipe(s) this product is present in order to remove or replace it. It will no longer be attached to one or more parent products, and may therefore be deleted.
To delete a sub-product, item or recipe used in a recipe, you must:
The goal here is to ensure that the product is not included in an "in progress" operation such as a job in production, an order or a sale. If this is the case, a notification informs the user in order to remove it and allow its deletion.
To remove a product, ingredient or recipe, included in an operation in progress: