The scheduling generator was not fully implementing what is expected in
the article L 221-19 of the Consumer Code.
The withdrawal date is the good one but once the first payment made the
second one can not occurs before the start of the course run. Then the
others payments can be calculated based on this second payment.
Bonus: There is an other commit to manage the case when the withdrawal date is after the course start date.
Proposal
[x] refactor scheduling generator to match expected behavior
Purpose
The scheduling generator was not fully implementing what is expected in the article L 221-19 of the Consumer Code. The withdrawal date is the good one but once the first payment made the second one can not occurs before the start of the course run. Then the others payments can be calculated based on this second payment.
Bonus: There is an other commit to manage the case when the withdrawal date is after the course start date.
Proposal