billing: Rename licenses_used variable to seat_count.

This commit is contained in:
Vishnu KS 2020-12-17 21:04:24 +05:30 committed by Tim Abbott
parent c9f4439850
commit 45f7a25351
2 changed files with 4 additions and 3 deletions

View File

@ -305,7 +305,8 @@ def billing_home(request: HttpRequest) -> HttpResponse:
plan.status == CustomerPlan.SWITCH_TO_ANNUAL_AT_END_OF_CYCLE plan.status == CustomerPlan.SWITCH_TO_ANNUAL_AT_END_OF_CYCLE
) )
licenses = last_ledger_entry.licenses 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 timezone # Should do this in javascript, using the user's timezone
renewal_date = "{dt:%B} {dt.day}, {dt.year}".format( renewal_date = "{dt:%B} {dt.day}, {dt.year}".format(
dt=start_of_next_billing_cycle(plan, now) dt=start_of_next_billing_cycle(plan, now)
@ -326,7 +327,7 @@ def billing_home(request: HttpRequest) -> HttpResponse:
automanage_licenses=plan.automanage_licenses, automanage_licenses=plan.automanage_licenses,
switch_to_annual_at_end_of_cycle=switch_to_annual_at_end_of_cycle, switch_to_annual_at_end_of_cycle=switch_to_annual_at_end_of_cycle,
licenses=licenses, licenses=licenses,
licenses_used=licenses_used, seat_count=seat_count,
renewal_date=renewal_date, renewal_date=renewal_date,
renewal_amount=f"{renewal_cents / 100.:,.2f}", renewal_amount=f"{renewal_cents / 100.:,.2f}",
payment_method=payment_method, payment_method=payment_method,

View File

@ -35,7 +35,7 @@
<p>Your current plan is <strong>{{ plan_name }}</strong>.</p> <p>Your current plan is <strong>{{ plan_name }}</strong>.</p>
{% endif %} {% endif %}
<p> <p>
You are using <strong>{{ licenses_used }} of {{ licenses }} licenses</strong>. You are using <strong>{{ seat_count }} of {{ licenses }} licenses</strong>.
{% if automanage_licenses %} {% if automanage_licenses %}
Licenses are automatically managed by Zulip; when you add or deactivate a user, the number of Licenses are automatically managed by Zulip; when you add or deactivate a user, the number of
licenses will be immediately updated to reflect your new usage. licenses will be immediately updated to reflect your new usage.