mirror of
https://github.com/zulip/zulip.git
synced 2026-06-12 21:00:58 +08:00
An invoice-billed free trial always has an invoice created when it starts (in process_initial_upgrade), expiring at the end of the trial. When the trial ended, make_end_of_cycle_updates_if_needed treated a missing invoice the same as an unpaid one and downgraded the customer. But a missing invoice means it was never sent on our end, so downgrading penalizes a customer who never had a chance to pay. Raise a BillingError instead, so the failure is surfaced for follow-up rather than silently downgrading them. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| lib | ||
| management | ||
| migrations | ||
| models | ||
| tests | ||
| views | ||
| __init__.py | ||
| urls.py | ||