Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
billing: Rename licenses_used variable to seat_count.
Vishnu KS45f7a25351c8
diff --git a/corporate/views.py b/corporate/views.pyindex ce104b42be0..bb249bc5914 100644--- a/corporate/views.py+++ b/corporate/views.py@@ -305,7 +305,8 @@ def billing_home(request: HttpRequest) -> HttpResponse:plan.status == CustomerPlan.SWITCH_TO_ANNUAL_AT_END_OF_CYCLE)licenses = last_ledger_entry.licenses- licenses_used = get_latest_seat_count(user.realm)+ seat_count = get_latest_seat_count(user.realm)+# Should do this in javascript, using the user's timezonerenewal_date = "{dt:%B} {dt.day}, {dt.year}".format(dt=start_of_next_billing_cycle(plan, now)@@ -326,7 +327,7 @@ def billing_home(request: HttpRequest) -> HttpResponse:automanage_licenses=plan.automanage_licenses,switch_to_annual_at_end_of_cycle=switch_to_annual_at_end_of_cycle,licenses=licenses,- licenses_used=licenses_used,+ seat_count=seat_count,renewal_date=renewal_date,renewal_amount=f"{renewal_cents / 100.:,.2f}",payment_method=payment_method,diff --git a/templates/corporate/billing.html b/templates/corporate/billing.htmlindex b2b3685da85..5ffb3d63ce9 100644--- a/templates/corporate/billing.html+++ b/templates/corporate/billing.html@@ -35,7 +35,7 @@<p>Your current plan is <strong>{{ plan_name }}</strong>.</p>{% endif %}<p>- You are using <strong>{{ licenses_used }} of {{ licenses }} licenses</strong>.+ You are using <strong>{{ seat_count }} of {{ licenses }} licenses</strong>.{% if automanage_licenses %}Licenses are automatically managed by Zulip; when you add or deactivate a user, the number oflicenses will be immediately updated to reflect your new usage.