+----------------------+-----------------------------------------------------------------------------------------------+
| Code | R28603 |
+----------------------+-----------------------------------------------------------------------------------------------+
| Entity | @Production.ShopFloor.WorkOrderItemIngredients |
+----------------------+-----------------------------------------------------------------------------------------------+
| Name | DistributeByMeasurementCategoryMustBeNull |
+----------------------+-----------------------------------------------------------------------------------------------+
| Attribute | DistributeByMeasurementCategory |
+----------------------+-----------------------------------------------------------------------------------------------+
| Layer | Back-End |
+----------------------+-----------------------------------------------------------------------------------------------+
| Events | Commit |
+----------------------+-----------------------------------------------------------------------------------------------+
| Priority | Normal |
+----------------------+-----------------------------------------------------------------------------------------------+
| Modify | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
| Action | Validate that: |
| |
|
| | If (DistributeBy != Measurement) |
| |
|
| | WorkOrderItemIngredient.DistributeByMeasurementCategory == null |
+----------------------+-----------------------------------------------------------------------------------------------+
| Description | Attribute DistributeByMeasurementCategory may only have value when the WorkOrderItem |
| | Ingredient in the row is distributed by Measurement. In all other cases it must be empty. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Message | Material {WorkOrderItemIngerient.Material.PartNumber} of document {DocumentText} is not |
| | distributed by Measurement and Measurement Category is specified. |
| |
|
| | Please, clear the measurement category in the Distribute By Measurement Category attribute. |
+----------------------+-----------------------------------------------------------------------------------------------+
| Introduced In | 2018.2 |
| Version | |
+----------------------+-----------------------------------------------------------------------------------------------+
| Revocable | NO |
+----------------------+-----------------------------------------------------------------------------------------------+
* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.