zulip/corporate
Prakhar Pratyush 421400c651 corporate: Fix 'get_next_billing_cycle' for scheduled fixed-price plan.
No renewal ledger entry exists for a scheduled fixed-price plan.

Earlier, when a customer with scheduled fixed-price plan
visited the billing page, the 'get_next_billing_cycle' function
raised an assertion error as no renewal ledger entry exists.

We don't need the ledger entry to determine the next billing
cycle in this case, so we move the code block which determines
the last_renewal time within the else conditional i.e. where it
is needed.

The scheduled plan has NEVER_STARTED status and the
next_invoice_date set to end date of the current plan.
We use this info to determine the next billing cycle.
2024-03-15 12:31:57 -07:00
..
lib corporate: Fix 'get_next_billing_cycle' for scheduled fixed-price plan. 2024-03-15 12:31:57 -07:00
management billing: Do subscription management in-house instead of with Stripe Billing. 2018-12-22 13:39:30 -08:00
migrations corporate: Fix invoicing of plans on free-trial with changed schedule. 2024-03-01 10:47:55 -08:00
tests stripe: Revive an old test case for payment method. 2024-03-15 08:39:46 -07:00
views upgrade: Fix allowed free trails for ended legacy plans on server. 2024-03-15 08:38:46 -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