We need to improve the Direct Debit Start Date. The Start date of the DD payment plan should occur in the same month of sign up when possible. When it is not possible, the second and first instalment should be taken in the same month to match the membership and payments duration, though this should be an optional setting.
The is a final release into master of the work done for:
IO-123: Calculate First Instalment Date
IO-124: Calculate Cycle Date
IO-125: Add New Setting
IO-126: Calculate Second Instalment Date Using New Setting
IO-129: Add Validation to Payment Run Dates
IO-132: Autorenewal Job is Failing
IO-135: Issue wit Second Instalment
Before
Functionality to calculate first and second instalment dates according to new instruction and payment run dates was not implemented.
After
Added a new setting so the admin can choose the second instalment to wither be:
1 month after first contribution
Force on second month of membership
Created new hook that is dispatched in ME extension before creating a contribution for a payment plan, so the hook can be used to alter the calculated receive date of each contribution.
Implemented the new hook on DD extension to change the receive date of each contribution, depending on the new setting so:
First contribution: receive date will be first available payment run date after first instruction run date + min days before payment run date.
Second contribution: if setting is force on second month, it will check the start date of the membership and add 1 instalment frequency to calculate the receive date. Other wise it'll be one month after first contribution.
Other contributions: for instalments > 2, receive date will always be 1 month after previous instalment.
Overview
We need to improve the Direct Debit Start Date. The Start date of the DD payment plan should occur in the same month of sign up when possible. When it is not possible, the second and first instalment should be taken in the same month to match the membership and payments duration, though this should be an optional setting.
The is a final release into master of the work done for:
Before
Functionality to calculate first and second instalment dates according to new instruction and payment run dates was not implemented.
After