Change recurring subscription product based on user age
BRP-7629
Description
The main purpose of this functionality is to auto change the recurring subscription product when the user reaches the configured age, in order to pay another VAT rate, as regulated by Danish law.
How it works
The change will end the existing subscription and create a new one, with the configured product. This is handled by the “Change subscription product due to age” scheduled task (this scheduled task has to be configured by BRP staff).
Independent of which day the task runs, the start of the new subscription will always be the first day of the next debit interval (the day after the existing subscription’s ‘debited until’ date). The existing subscription will end that day, and will not have the renew option checked, from the day the change was made.
Future deviations will be moved to the new subscription. If the current subscription has an active deviation at the first day of next debit period, the change will not be made now.
The existing values of bound until, price warranty day and renewal, will be used by the new subscription.
The scheduled task will by default run in test mode, which means nothing will be changed or written to database, but the suggested changes will be sent in an email to the configured email address. The list of changes will be in csv-format/semicolon separated, for easy import into spreadsheet.
Each recurring subscription product needs to be configured with a new product to auto-change to.
Configuration
Settings
Setting name | Default value | Description |
|---|---|---|
| false | Needs to be activated for the auto change configuration options to be visible in the subscription product configuration, and for the scheduled task to run. |
| true | Run task in test mode, and only send the suggested changes by email without committing the changes. |
| - | Email address to send the result to. Applicable for both test and normal mode. |
Scheduling
The automatic scheduler “Change subscription product due to age task” must be set to SCHEDULED.
Product configuration
Only visible if the above setting is activated.
Only recurring products with the same payment method as the current subscription product, are selectable.
The age and new product to change to, needs to be set.
If “change the price to that of the product” is not selected, the existing subscription price is used.