R37434 Work Orders - Production Or Decomposition Mode Sign Validation

Code R37423
Entity Production.ShopFloor.WorkOrders Entity
Name ProductionOrDecompositionModeSignValidation
Attribute ProducedQuantity
Layer Back-End
Events Planning +
Modify NO
Applicable Legislations ALL // no condition needed
Action IF
WorkOrder.EntitySettings.ProductionMode = Production or Decomposition(depends on sign)

THEN
Validate that for all WorkOrder.WorkOrderItems lines,
ProducedQuantity values are either >= 0 OR <= 0
Description When the document state is changed to 'Planned' or higher, the system checks that ll Produced Quantity values in the WorkOrderItems lines have the same sign or are equal to zero.
If any Produced Quantity values have non-identical signs,the system will trigger an error, preventing the state change until the issue is resolved.
Message The value of the 'Produced Quantity' field for all items in the lines of '[WorkOrder.DocumentNo]'| must have the same sign or be equal to zero due to the 'Production or Decomposition (depends on sign)' setting specified in the document type.
| Please specify a valid quantity.
Version Introduced: v.25
Revocable YES

* For more information about the Business Rules Documentation Template and a short explanation of each column, see topic System Business Rules.