Skip to main content
Version: Released

Mapping Table Between Plinths and Legs

Apply Rule

PlinthLegRule

Mapping table between plinths and legs.

Notification level: Not applicable

KeyValue
IDPlinthLegRule
Translation keyNot applicable

Behavior

This rule checks the consistency of plinth products and leg products by creating a mapping table between them, because some legs are not compatible with some plinths and conversely.


Trigger Conditions

It is triggered if plinths and legs are in the current configuration, and when the user changes the plinths or legs. The application checks the compatibility of these elements.


Overload Parameter

Key nameTypeDefault valueDescription
Any product IDstring / Array of stringsthe overload object is a mapping table: the key represents the product ID of the plinth, the value represents the product ID/ Array of Product IDs of the leg. Mandatory.

For example:

The mapping is represented by a JSON object where each key is a plinthID and its value is the legID.

Following the overload described above, if the user chooses a plinth whose product ID is "15779", the value of the leg will change to "13805". Therefore, all the furniture having this plinth product ID will change its leg value to "13805". The consistency between both leg and plinth is ensured and the kitchen is valid.

{
"15779": ["13805"]
}