This PR adds support for multi months of rolling payment plan membership, it is a continuation of the work started in this PR.
Before
membership can only have one-month interval
After
Months can be multiple. e.g. creating a membership with 6 months interval
Users are prevented from editing the membership end date when creating a payment plan membership
Technical Details
In this PR also we change how sameDayNextMonth is calculated, for example, the sameDayNextMonth for 2018-01-31 is 2018-02-28, now the sameDayNextMonth for 2018-01-31 is 2018-03-01. i.e. if the day of the previous month is any of 29/30/31, thesameDayNextMonth is the 1st day of the next two months.
Overview
This PR adds support for multi months of rolling payment plan membership, it is a continuation of the work started in this PR.
Before
membership can only have one-month interval
After
Months can be multiple. e.g. creating a membership with 6 months interval
Users are prevented from editing the membership end date when creating a payment plan membership
Technical Details
In this PR also we change how
sameDayNextMonth
is calculated, for example, thesameDayNextMonth
for2018-01-31
is2018-02-28
, now thesameDayNextMonth
for2018-01-31
is2018-03-01
. i.e. if the day of the previous month is any of 29/30/31, thesameDayNextMonth
is the 1st day of the next two months.