mirror of https://github.com/zulip/zulip.git
421400c651
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. |
||
---|---|---|
.. | ||
lib | ||
management | ||
migrations | ||
tests | ||
views | ||
__init__.py | ||
models.py | ||
urls.py |