This PR adds functionality to support pro-rata calculation for fixed period membership type where membership start date is in the part.
For example,
Membership type configuration
Membership start day: 01 Dec
Membership rollover days: 30 Nov
Membership Duration 1 Year
Membership start date: 01/01/2020
Membership end date: user not select
Before
Pro-rata was calculated based on start date and default with membership end date
As above configuration,
The membership end date will default to 30/Nov/2021 and the different in days will be 700 days so the pro-rata will be calculated based on 700 days if annual configuration is by days.
After
Pro-rata is calculated based on input dates (start date, end date and join_date).
As above configuration,
The membership end date will default to 30/Nov/2001 and the different in days will be 335 days so the pro-rata will be calculated based on 335 days if annual configuration is by days
Overview
This PR adds functionality to support pro-rata calculation for fixed period membership type where membership start date is in the part.
For example,
Membership type configuration
Membership start date: 01/01/2020 Membership end date: user not select
Before
The membership end date will default to 30/Nov/2021 and the different in days will be 700 days so the pro-rata will be calculated based on 700 days if annual configuration is by days.
After
The membership end date will default to 30/Nov/2001 and the different in days will be 335 days so the pro-rata will be calculated based on 335 days if annual configuration is by days