R20971-1.1 StoreTransactionLine - Check Product Variant

Code R20971-1.1
Entity Logistics.Inventory.StoreTransactionLines Entity
Name CheckProductVariant
Attribute ProductVariant
Layer Back-End
Events Commit
Priority Normal
Modify NO
Applicable Legislations ALL // no condition needed
Action If (ProductVariant !=Null)

, validate that: Product = ProductVariant.Product
Description If the field "Product Variant" has a value, then we need to make sure that this value (the product variant) corresponds to the product which is set in the line. This means that the product set in the particular product variant's definition must be the same as the one filled in the line. The rule ensures that the accidental switch between different product's variants is avoided.
Message In line number '{LineNo}' of document '{DocumentText}' is selected an invalid product variant.

The product in the line should match the product specified in the definition of the product variant.
Version Introduced: 2015

Updated: -
Revocable NO

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