zulip/corporate/lib
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
..
__init__.py
registration.py billing: Fix exempt_from_from_license_number_check column name. 2023-04-13 15:26:44 -07:00
stripe.py billing: Fix license counting in exempt_from_license_number_check case. 2023-09-26 09:59:15 -07:00
stripe_event_handler.py ruff: Fix SIM105 Use `contextlib.suppress` instead of try-except-pass. 2023-01-23 11:18:36 -08:00
support.py corporate: Add contact support page. 2021-10-01 17:30:01 -07:00