compucorp / uk.co.compucorp.membershipextras

Membership Extras for CiviCRM
Other
5 stars 8 forks source link

[draft] MAE-690: Add support for multi months rolling payment plan membership #429

Closed olayiwola-compucorp closed 2 years ago

olayiwola-compucorp commented 2 years ago

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 mem1

Users are prevented from editing the membership end date when creating a payment plan membership enddate

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.

olayiwola-compucorp commented 2 years ago

closing you for https://github.com/compucorp/uk.co.compucorp.membershipextras/pull/432