Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
stripe: Provide min license count to template as per tier.
Aman Agrawal1326619b7748
diff --git a/corporate/lib/stripe.py b/corporate/lib/stripe.pyindex 221d2e3ba39..0090649396f 100644--- a/corporate/lib/stripe.py+++ b/corporate/lib/stripe.py@@ -622,6 +622,7 @@ class UpgradePageContext(TypedDict):is_demo_organization: boolmanual_license_management: boolusing_min_licenses_for_plan: bool+ min_licenses_for_plan: intpage_params: UpgradePageParamspayment_method: Optional[str]plan: str@@ -1782,6 +1783,7 @@ class BillingSession(ABC):"remote_server_legacy_plan_end_date": remote_server_legacy_plan_end_date,"legacy_remote_server_next_plan_name": legacy_remote_server_next_plan_name,"using_min_licenses_for_plan": using_min_licenses_for_plan,+ "min_licenses_for_plan": min_licenses_for_plan,}return context@@ -1914,6 +1916,7 @@ class BillingSession(ABC):"billing_base_url": self.billing_base_url,},"using_min_licenses_for_plan": using_min_licenses_for_plan,+ "min_licenses_for_plan": min_licenses_for_plan,"payment_method": current_payment_method,"plan": CustomerPlan.name_from_tier(tier),"salt": salt,diff --git a/templates/corporate/billing.html b/templates/corporate/billing.htmlindex 14784ea0f93..bb6a70af6e8 100644--- a/templates/corporate/billing.html+++ b/templates/corporate/billing.html@@ -253,7 +253,7 @@{% endif %}{% if using_min_licenses_for_plan %}<br />- <i>Minimum purchase for this plan: 10 licenses</i>+ <i>Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses</i>{% endif %}{% endif %}{% endif %}diff --git a/templates/corporate/upgrade.html b/templates/corporate/upgrade.htmlindex a4ff6409173..be0ef655c47 100644--- a/templates/corporate/upgrade.html+++ b/templates/corporate/upgrade.html@@ -140,7 +140,7 @@{% endif %}{% if not manual_license_management and using_min_licenses_for_plan %}<br />- <i>Minimum purchase for this plan: 10 licenses</i>+ <i>Minimum purchase for this plan: {{ min_licenses_for_plan }} licenses</i>{% endif %}<h1>$<span class="due-today-price"></span></h1>{% if free_trial_days %}