R28598 WorkOrder - Due Date Required When Items Are Stocked

Code R28598
Entity Production.ShopFloor.WorkOrders Entity
Name DueDateRequiredWhenItemsAreStocked
Attribute DueDate
Layer Back-End
Events Releasing +
Priority Normal
Modify NO
Action Validate that:

if (WorkOrder.WorkOrderItems[Product.ProductType.IsStocked == True].Count >0)

DueDate != null
Description If the work order items are stocked, than Store Orders are created in the document flow. The store orders have DueDate attribute and it is required as it shows the due date when the store transaction should be released. When we set DueDate in the WorkOrder, its value is copied to the Store Order.
Message Document {DocumentText} contains items which are stocked and DueDate attribute is null.

Please, fill in DueDate.
Introduced In Version 2018.2
Revocable NO

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