mirror of
https://github.com/zulip/zulip.git
synced 2026-06-30 21:11:04 +08:00
In 'invoice_plan()', the primary way to not create an invoice for a plan is to not have any new ledger entry. This commit adds a 'self.on_paid_plan()' check which is an extra layer of defense to avoid creating any invoices for customers not on paid plan. It saves a DB query too. |
||
|---|---|---|
| .. | ||
| lib | ||
| management | ||
| migrations | ||
| tests | ||
| views | ||
| __init__.py | ||
| models.py | ||
| urls.py | ||