R30425-6 StoreTransactionLine - Set Parent Store Order Line From Product Line No

Code 30425-6
Entity Logistics.Inventory.StoreTransactionLines Entity
Name SetParentStoreOrderLineFromProductLineNo
Attribute ParentStoreOrderLine
Layer Front-End
Events AttributeChanged(Product, LineNo)
Priority Normal
Modify YES
Applicable Legislations ALL // no condition needed
Action if (Product!=null AND StoreTransaction.ParentStoreOrder!=null) { if(ParentStoreOrder.Lines.Any(sol=>sol.LineNo==l.ParentLineNo && sol.Product==l.Product)) { l.ParentStoreOrderLine = l.TransactionObj.ParentStoreOrder.Lines.FirstOrDefault(sol => sol.LineNo == l.ParentLineNo && sol.Product == l.Product); } else {l.ParentStoreOrderLine = null;

throw}
Description When Product or LineNo is changed, if there is a matching Store Order Line it should be set as Parent Store Order Line. If there isn't a matching line in the lines of the Parent Store Order, an exception is thrown.
Message The field Parent Store Order Line does not have a value.

In the header of document '{DocumentText}' is set a Parent Store Order, but the field Parent Store Order Line in line '{LineNo}' is empty, which is not allowed.

Please remove the Parent Store Order or select a Parent Store Order Line.





The message is also used in:

R30425-8 StoreTransactionLine - Check Parent Store Order Line
Version Introduced: 2020.1
Revocable YES

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