diff --git a/company_site/financial/templates/financial/invoices.html b/company_site/financial/templates/financial/invoices.html new file mode 100644 index 0000000..86c1c37 --- /dev/null +++ b/company_site/financial/templates/financial/invoices.html @@ -0,0 +1,92 @@ +{% extends "base.html" %} +{% load static %} + +{% block title %}Invoices - AI ML Operations{% endblock %} + +{% block content %} +
+
+
+ Back to Dashboard +
+

Invoices & Subscriptions

+ + {% if not stripe_configured %} +

+ Stripe is not configured. Set STRIPE_SECRET_KEY (and webhook secret) in the environment before creating invoices. +

+ {% endif %} + + + +

One-off invoices

+
+ {% if invoices %} + + + + + + + + + + + + {% for inv in invoices %} + + + + + + + + {% endfor %} + +
CustomerDescriptionAmountStatusCreated
{{ inv.customer.name }}{{ inv.description }}${{ inv.amount_dollars|floatformat:2 }}{{ inv.get_status_display }}{{ inv.created|date:"Y-m-d" }}
+ {% else %} +

No invoices yet.

+ {% endif %} +
+ +

Recurring subscriptions

+
+ {% if subscriptions %} + + + + + + + + + + + + {% for sub in subscriptions %} + + + + + + + + {% endfor %} + +
CustomerDescriptionAmountIntervalStatus
{{ sub.customer.name }}{{ sub.description }}${{ sub.amount_dollars|floatformat:2 }}{{ sub.get_interval_display }}{{ sub.get_status_display }}
+ {% else %} +

No subscriptions yet.

+ {% endif %} +
+
+
+{% endblock %}