Closed olayiwola-compucorp closed 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"
Overview
In this PR,
Before
Multi year/month memberships can not be created
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.
On renewal, the membership period is extended by the membership duration, and a new recurring contribution is created.
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.
On renewal, the membership period is extended by the membership duration, and a new recurring contribution is created.
Cycle day and the next scheduled contribution date day doesn't exceed 28 irrespective of the first/last contribution date