mirror of https://github.com/zulip/zulip.git
a20ce627d9
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 |