SaaS subscription plans: fix bug
SaaS subscription plans: fix bug: a task in smol-software-harbor (Harbor dataset). Customers who upgrade near the end of their billing period are charged almost the full difference, and those who upgrade at the start almost nothing ( test upgrade fails): upgrade charge in plans/proration.py uses…
The task
Customers who upgrade near the end of their billing period are charged almost the full difference, and those who upgrade at the start almost nothing (`test_upgrade` fails): `upgrade_charge` in `plans/proration.py` uses the days already used instead of the remaining days. Fix it and run `python3 -m pytest -q`.
Part of efederici/smol-software-harbor.