{% extends "controlpanel/base.html" %} {% load lucide ui %} {% block heading %}Billing{% endblock heading %} {% block actions %} {% endblock actions %} {% block panel %} {% url 'controlpanel:plan_create' as plan_create_url %} {% include "controlpanel/_modal_form.html" with modal_id="plan_create_modal" title="New plan" form=plan_form action_url=plan_create_url submit_label="Create plan" submit_icon="plus" box_class="max-w-2xl" two_columns=True %}
A rate change only takes effect as of a certain date. Periods already billed keep the amount they were issued at.
| Plan | Clocks | Clubs | Prices | |
|---|---|---|---|---|
|
{{ plan.name }}
{% if plan.is_trial %}Trial{% endif %}
{% if not plan.is_active %}Retired{% endif %}
{% if plan.description %}
{{ plan.description }} {% endif %}
|
{% comment %}
Named for what each measures from, because that is the easy thing to
get wrong: grace runs from the period START, not its end.
{% endcomment %}
{{ plan.duration_months }} month{{ plan.duration_months|pluralize }} long
billed {{ plan.renewal_lead_days }}d before it starts
archived {{ plan.grace_days }}d after it starts
|
{{ plan.club_count }} |
{% for price in plan.prices.all %}
€{{ price.amount|floatformat:2 }}
from {{ price.active_from|date:"j M Y" }}
{% if price.active_from > today %}Scheduled{% endif %}
{% empty %}
No price — cannot be billed
{% endfor %}
|
{% lucide "trash-2" size=14 %} Delete |
| No plans yet. | ||||
| Club | Period | Owed | Status | |
|---|---|---|---|---|
|
{{ due.club.name }}
{{ due.plan.name }}
|
{{ due.period_start|date:"j M Y" }} — {{ due.period_end|date:"j M Y" }}
Grace to {{ due.grace_until|date:"j M Y" }}
|
€{{ due.balance|floatformat:2 }} | {% if due.grace_until < today %} {% lucide "triangle-alert" size=12 %} Overdue {% elif due.period_end < today %} {% lucide "hourglass" size=12 %} In grace {% else %} {{ due.get_status_display }} {% endif %} | {% lucide "file-down" size=14 %} Download invoice |
| Nothing outstanding. | ||||