{% extends 'base.html' %} {% from "macros.html" import render_selectable_table %} {% block title %}License Periods - {{ license.id }}{% endblock %} {% block content_title %}License Periods{% endblock %} {% block content_description %}License: {{ license.id }} | Tier: {{ license.license_tier.name }} | Periods: {{ periods|length }}{% endblock %} {% block content %}
| Period | Start Date | End Date | Status | Usage | Payments | Invoices | Actions |
|---|---|---|---|---|---|---|---|
| {{ period.period_number }} | {{ period.period_start }} | {{ period.period_end }} | {{ period.status.name }} |
{% set usage = usage_by_period.get(period.id) %}
{% if usage %}
S: {{ "%.1f"|format(usage.storage_mb_used or 0) }}MB E: {{ "%.1f"|format(usage.embedding_mb_used or 0) }}MB I: {{ "{:,}"|format(usage.interaction_total_tokens_used or 0) }} {% else %} No usage {% endif %} |
{% set payments = payments_by_period.get(period.id, []) %} {{ payments|length }} payment(s) | {% set invoices = invoices_by_period.get(period.id, []) %} {{ invoices|length }} invoice(s) |