Update 1: A small bug fixed. Please update if you didn't installed v.3.0.25-c setup.
Hello. This preview release contains new rule constraints feature.
Notes:
- Old constraint system is still alive but SambaPOS will hide old constraints section if it does not contains any value. Also it won't create old constraints section for new rules.
- Click Add Custom Constraint link to add a new rule constraint. Choose a constraint name, select operation and set value.
- You can use printer tags and expressions as constraint values. On the screen shot we are reading ticket promotion state
- There are 5 different methods of constraint evaluation.
- Match All: All Constraints should be true to execute the rule
- Match Any: If single constraint returns true rule executes.
- Does not match all: If all constraints returns false rule executes.
- Does not match any: If one ore more constraints returns false rule executes.
- Match: This is the default evaluation method. It should be selected for most cases. To execute the rule one or more constraints with same left value and all remaining constraints should return true. On the screen shot rule executes if Menu Item Name is Coffee or Tea and Ticket's promotion state is active.
- There are new operators for easier handling string values
- Equals , Not Equals: Compares values.
- IsNull Value equals null or empty.
- Starts, Ends, Contains: Checks existence of a sub string.
- Matches, Not Matches Tests values with regular expression patterns.
On future SambaPOS releases we'll completely remove old Rule Constraint system.
Let me know you test results. Thanks.