Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
support: Update support view PlanData to use "complimentary access".
Lauryn Menard10b2e2a09265
diff --git a/corporate/lib/support.py b/corporate/lib/support.pyindex cf56b956d59..e6c214e8311 100644--- a/corporate/lib/support.py+++ b/corporate/lib/support.py@@ -83,7 +83,7 @@ class PlanData:licenses: int | None = Nonelicenses_used: int | None = Nonenext_billing_cycle_start: datetime | None = None- is_legacy_plan: bool = False+ is_complimentary_access_plan: bool = Falsehas_fixed_price: bool = Falseis_current_plan_billable: bool = Falsestripe_customer_url: str | None = None@@ -316,9 +316,13 @@ def get_plan_data_for_support_view(plan_data.current_plan, timezone_now())- plan_data.is_legacy_plan = (- plan_data.current_plan.tier == CustomerPlan.TIER_SELF_HOSTED_LEGACY- )+ if isinstance(billing_session, RealmBillingSession):+ # TODO implement a complimentary access plan/tier for Zulip Cloud.+ plan_data.is_complimentary_access_plan = False+ else:+ plan_data.is_complimentary_access_plan = (+ plan_data.current_plan.tier == CustomerPlan.TIER_SELF_HOSTED_LEGACY+ )plan_data.has_fixed_price = plan_data.current_plan.fixed_price is not Noneplan_data.is_current_plan_billable = billing_session.check_plan_tier_is_billable(plan_tier=plan_data.current_plan.tierdiff --git a/templates/corporate/support/current_plan_details.html b/templates/corporate/support/current_plan_details.htmlindex 285c0ec48ff..e04e3acd87e 100644--- a/templates/corporate/support/current_plan_details.html+++ b/templates/corporate/support/current_plan_details.html@@ -20,7 +20,7 @@{% if plan_data.current_plan.discount %}<b>Discount</b>: {{ plan_data.current_plan.discount }}%<br />{% endif %}- {% if plan_data.is_legacy_plan %}+ {% if plan_data.is_complimentary_access_plan %}<b>End date</b>: {{ plan_data.current_plan.end_date.strftime('%d %B %Y') }}<br />{% else %}<b>Licenses</b>: {{ plan_data.licenses_used }}/{{ plan_data.licenses }} ({% if plan_data.current_plan.automanage_licenses %}Automatic{% else %}Manual{% endif %})<br />