+-----------------------------+---------------------------------------------------------------------------------------+
| Code | 31356-9 |
+-----------------------------+---------------------------------------------------------------------------------------+
| Entity | @Production.ShopFloor.WorkOrders |
+-----------------------------+---------------------------------------------------------------------------------------+
| Name | SetItemIngredientsStoreBin |
+-----------------------------+---------------------------------------------------------------------------------------+
| Attribute | Ingredient.Store; Ingredient.StoreBin |
+-----------------------------+---------------------------------------------------------------------------------------+
| Layer | Front-End |
+-----------------------------+---------------------------------------------------------------------------------------+
| Events | AttributeChanged(DefaultMaterialsStore) |
+-----------------------------+---------------------------------------------------------------------------------------+
| Priority | Normal |
+-----------------------------+---------------------------------------------------------------------------------------+
| Modify | YES |
+-----------------------------+---------------------------------------------------------------------------------------+
| Applicable Legislations | ALL // no condition |
| | needed |
+-----------------------------+---------------------------------------------------------------------------------------+
| Action | foreach WorkOrderItemIngredient |
| | { |
| | Store = DefaultMaterialsStore; |
| | StoreBin = null; |
| | } |
+-----------------------------+---------------------------------------------------------------------------------------+
| Description | When Work Order's Default Materials Store is changed, Store in all Work Order Item |
| | Ingredients should be changed to Default Materials Store and Store Bins in all Work |
| | Order Item Ingredients should be changed to null. |
+-----------------------------+---------------------------------------------------------------------------------------+
| Message | |
+-----------------------------+---------------------------------------------------------------------------------------+
| Version | Introduced: 21 |
| |
|
| | Updated: - |
+-----------------------------+---------------------------------------------------------------------------------------+
| Revocable | YES |
+-----------------------------+---------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.