Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

stripe: Don't invoice fixed-price plans for additional licenses.

Prakhar Pratyushbd969de2087f
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.py
index 0a424461063..da4800ef18a 100644
--- a/corporate/lib/stripe.py
+++ b/corporate/lib/stripe.py
@@ -2792,7 +2792,11 @@ class BillingSession(ABC):
"quantity": ledger_entry.licenses,
}
description = f"{plan.name} - renewal"
- elif licenses_base is not None and ledger_entry.licenses != licenses_base:
+ elif (
+ plan.fixed_price is None
+ and licenses_base is not None
+ and ledger_entry.licenses != licenses_base
+ ):
assert plan.price_per_license is not None
last_ledger_entry_renewal = (
LicenseLedger.objects.filter(