Skip to content

New rule constraints test release

Latest
Compare
Choose a tag to compare
@emreeren emreeren released this 28 Aug 01:48
· 72 commits to master since this release

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.

5

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.
    1. Match All: All Constraints should be true to execute the rule
    2. Match Any: If single constraint returns true rule executes.
    3. Does not match all: If all constraints returns false rule executes.
    4. Does not match any: If one ore more constraints returns false rule executes.
    5. 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
    1. Equals , Not Equals: Compares values.
    2. IsNull Value equals null or empty.
    3. Starts, Ends, Contains: Checks existence of a sub string.
    4. 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.