From 5596a87cc7c414ae202e194f0a441d089ae7158e Mon Sep 17 00:00:00 2001 From: Ryan Westfall Date: Fri, 31 Jul 2026 04:35:07 -0700 Subject: [PATCH] Update company_site/financial/templates/financial/invoice_detail.html for Stripe invoices (#23) --- .../templates/financial/invoice_detail.html | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 company_site/financial/templates/financial/invoice_detail.html diff --git a/company_site/financial/templates/financial/invoice_detail.html b/company_site/financial/templates/financial/invoice_detail.html new file mode 100644 index 0000000..ebb5673 --- /dev/null +++ b/company_site/financial/templates/financial/invoice_detail.html @@ -0,0 +1,38 @@ +{% extends "base.html" %} +{% load static %} + +{% block title %}Invoice {{ invoice.pk }} - AI ML Operations{% endblock %} + +{% block content %} +
+
+
+ Back to Invoices +
+

Invoice #{{ invoice.pk }}

+
+

Customer: {{ invoice.customer.name }} <{{ invoice.customer.email }}>

+

Description: {{ invoice.description }}

+

Amount: ${{ invoice.amount_dollars|floatformat:2 }} {{ invoice.currency|upper }}

+

Status: {{ invoice.get_status_display }}

+

Due: {{ invoice.due_date|default:"—" }}

+

Stripe invoice: {{ invoice.stripe_invoice_id|default:"—" }}

+ {% if invoice.hosted_invoice_url %} +

Pay link: Open hosted invoice

+ {% endif %} + {% if invoice.invoice_pdf_url %} +

PDF: Download

+ {% endif %} +

Email sent: {{ invoice.pay_link_emailed_at|default:"Not yet" }}

+ {% if invoice.notes %}

Notes: {{ invoice.notes }}

{% endif %} + + {% if invoice.hosted_invoice_url %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+
+{% endblock %}