openfun / joanie

👛 A headless ERP for education to manage course enrollment/subscription, payment and certificates delivery.
MIT License
22 stars 2 forks source link

refactor scheduling generator to match expected behavior #827

Closed lunika closed 3 months ago

lunika commented 3 months ago

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