zulip/corporate
Mateusz Mandera 07e99eace9 billing: Fix license counting in exempt_from_license_number_check case.
Fixes two bugs involving organization with
exempt_from_license_number_check enabled:
1. If the organization had e.g. 100 users and upgraded their plan,
   specifying 50 licenses, the generated LicenseLedger and thus the
   corresponding invoice was still for 100 users.
2. The organization was unable to use the billing/plan endpoint (update
   plan endpoint) to make their number of licenses less than the current
   number of users.

Organizations with exempt_from_license_number_check are supposed to be
able to declare whatever license number they want, as this attribute
allows having pricing schemes where an organization only pays us for a
subset of their users.
2023-09-26 09:59:15 -07:00
..
lib billing: Fix license counting in exempt_from_license_number_check case. 2023-09-26 09:59:15 -07:00
management
migrations corporate: Replace unused accessors with database constraint. 2023-05-31 13:53:04 -07:00
tests billing: Fix license counting in exempt_from_license_number_check case. 2023-09-26 09:59:15 -07:00
views ruff: Fix PERF401 Use a list comprehension to create a transformed list. 2023-08-07 17:23:55 -07:00
__init__.py
models.py corporate: Replace unused accessors with database constraint. 2023-05-31 13:53:04 -07:00
urls.py portico: Add Atolio case study. 2023-04-26 14:33:30 -07:00