Skip to content

[REVERTED] Categories: now with better categorising

Compare
Choose a tag to compare
@errietta errietta released this 07 Mar 16:36
· 4 commits to master since this release

THIS RELEASE HAS BEEN REVERTED due to not really working properly.
The below information is kept for historical reasons. Please do not use this release


You can finally have multiple category_rules for categories, using the familiar FLEX/STRICT modes.

strict (the default) requires all the below to be true:

{
  "category_rules": {
    "type": {"rules":[["=","DD"]]}, 
    "creditAmount": { "rules": [[">",500]]}
   }
}

FLEX will be type='DD' OR 'creditAmount' > 500

{
  "category_rules": {
    "type": {"rules":[["=","DD"]]}, 
    "creditAmount": { "rules": [[">",500]]},
    "mode": "FLEX"
   }
}