Rules+ | Validity periods
With the Rules+ module, it is possible to query validity periods.
Example
A CS table contains prices with the following columns:
Price
Valid from
Valid until
The currently valid price is to be read from the table.
Procedure
Create a rule for the table rows.
Criterion 1:
Field: Valid from
Field format: Formatted
Operation plug-in: Smaller than
Comparison value: +1 day
Criterion 2:
Field: Valid until
Field format: Formatted
Operation plug-in: Greater than
Comparison value: -1 day
Create a rule for the table:
Operation plug-in: Check Tablerows
Choose Sub Rule to compare with the Tablerows: Rule for table rows
Create an attribute of the type “Formula” in the PIM Studio and use the formula RULETABLEVAL:
{=RULETABLEVAL(“Attribute”; “Column”; “Rule ID or key”;Formatted)}
Select the rule for the table rows as the rule ID or key!