zulip/corporate
Prakhar Pratyush c9d25b2a95 stripe: Redirect to /plans if plans downgraded on /billing page visit.
When a customer with plan's status 'DOWNGRADE_AT_END_OF_FREE_TRIAL'
visits /billing page on the free-trial end date before the invoice
cron runs, the 'make_end_of_cycle_updates_if_needed' downgrades the
plan.

Earlier, when such a customer visited /billing page in this time window
it resulted in an assertion error.

This commit fixes the incorrect behaviour by redirecting to '/plans'
page in such cases.
2024-03-19 09:25:07 -07:00
..
lib stripe: Redirect to /plans if plans downgraded on /billing page visit. 2024-03-19 09:25:07 -07:00
management
migrations corporate: Fix invoicing of plans on free-trial with changed schedule. 2024-03-01 10:47:55 -08:00
tests stripe: Redirect to /plans if plans downgraded on /billing page visit. 2024-03-19 09:25:07 -07:00
views stripe: Redirect to /plans if plans downgraded on /billing page visit. 2024-03-19 09:25:07 -07:00
__init__.py
models.py upgrade: Fix allowed free trails for ended legacy plans on server. 2024-03-15 08:38:46 -07:00
urls.py portico: Add Semsee case study. 2024-02-22 10:33:31 -08:00