zulip/corporate/lib
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
..
__init__.py
activity.py remote-activity: Add column for remote server or realm creation date. 2024-02-15 10:29:12 -08:00
decorator.py python: Reformat with Ruff formatter. 2024-02-29 17:07:16 -08:00
registration.py models: Extract zerver.models.users. 2023-12-16 22:08:44 -08:00
remote_billing_util.py remote_realm: Plumb RemoteRealmBillingUser into BillingSession. 2023-12-10 16:15:28 -08:00
stripe.py corporate: Fix 'get_next_billing_cycle' for scheduled fixed-price plan. 2024-03-15 12:31:57 -07:00
stripe_event_handler.py upgrade: Allow payment by invoice. 2024-03-14 16:43:52 -07:00
support.py remote-support: Highlight if audit log data is stale or current. 2024-03-08 09:40:43 -08:00