Scheduler name is “Auto loyalty update”
will update all persons benefits status to Gold or Black status or clear it if it fit some restriction
Default restrictions
To become a gold loyalty memeber user need be a member for 3 years minimum with end date not less then 30 days before today
To become a black loyalty memeber user need be a member for 7 (TP53764 / 2023.4005)
Purpose
Automatically update the “Benefit status” property on persons based on how long they have been a member for.
Configuration
Create the loyalty levels as “Benefit status” in configuration/benefit-status
Decide how many years the persons need to be members for to reach each level.
Decide how many days gap there can be between two memberships to still base the loyalty level as for a non broken membership period.
BRP Staff will check the “Benefit status IDs” for the Benefit status objects.
BRP staff will configure and enable the scheduled task “Run auto loyalty update”
...
Functionality
If the scheduled task is enabled, the benefit status for persons will be updated every night
If the person qualifies for one of the configured levels, the one that requires the most numbers of years will be set.
If the person does no longer qualify for any of the specified levels the benefit status will be cleared
Parameters
allowedDaysPause
Default value (if not configured) is 30 days.
allowedDaysPause=20
will change this to 20 days.
yearsToBenefitStatusMap
Number of years-BenefitStatusID1;Number of years-BenefitStatusID2;Number of years-BenefitStatusID3
Example of parameters
To become a loyalty level 1 member the person needs be a member for 3 years minimum with end date not less then 30 20 days before today
Change restrictions parameters
User can do it with some schedule setups:
allowedDaysPause - will change amount of days after membership end date that allow person to keep loyalty status
goldMinYears - minimum amount or years to become gold loyalty member
blackMinYears - minimum amount or years to become black loyalty member
Its not required to set all 3 parameters if user need to change only one, you can set only those that you need to change
Full parameters list example
.
After 5 years: Level 2
After 10 years: Level 3
Higher value for number of years has priority, so after 10 years I get status 3, not 1 or 2.
Code Block |
---|
allowedDaysPause=20
|
...
yearsToBenefitStatusMap= |
...
3-1;5-2;10-3 |