compucorp / uk.co.compucorp.membershipextras

Membership Extras for CiviCRM
Other
5 stars 8 forks source link

MAE-693: Add support for multi years/month rolling membership #432

Closed olayiwola-compucorp closed 2 years ago

olayiwola-compucorp commented 2 years ago

Overview

In this PR,

Before

Multi year/month memberships can not be created

Screenshot 2022-06-07 at 10 01 28

After

Users can now create X year membership and appropriate instalment count for the selected schedule, for example when X is 3, 36 instalments are created for the monthly schedule, 12 instalments are created for the quarterly schedule and 3 instalments are created for the annual schedule. 3year

On renewal, the membership period is extended by the membership duration, and a new recurring contribution is created. 3yearrenwal

Users can now create X month membership and appropriate instalment count for the selected schedule, for example when X is 6, 6 instalments are created for the monthly schedule. multimonth

On renewal, the membership period is extended by the membership duration, and a new recurring contribution is created. multimonthrenewal

Cycle day and the next scheduled contribution date day doesn't exceed 28 irrespective of the first/last contribution date

Screenshot 2022-06-08 at 12 24 52
omarabuhussein commented 2 years ago

@olayiwola-compucorp I missed this during the first review, but can you also add tests to make sure the cycle day won't exceed 28.

Also with your last commit we need tests to ensure that "next scheduled contribution date won't exceed the 28th day"