From 66f0e205a49904c43d16ee5feb7e522b61e02577 Mon Sep 17 00:00:00 2001 From: chrisjsimpson Date: Tue, 27 Aug 2024 21:17:09 +0100 Subject: [PATCH] 1395 as a subscriber i can download my own invoices (#1397) * Fix #1395 as a Subscriber I can download my own invoices * #1395 black format * #1395 add missing subscriber_invoices.html template --- .../subscriber/subscriber_invoices.html | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 subscribie/blueprints/subscriber/templates/subscriber/subscriber_invoices.html diff --git a/subscribie/blueprints/subscriber/templates/subscriber/subscriber_invoices.html b/subscribie/blueprints/subscriber/templates/subscriber/subscriber_invoices.html new file mode 100644 index 00000000..b439845a --- /dev/null +++ b/subscribie/blueprints/subscriber/templates/subscriber/subscriber_invoices.html @@ -0,0 +1,63 @@ +{% extends "subscriber/layout.html" %} +{% block title %} {{ _('Account') }} - {{ company.name }} {% endblock %} + +{% block body %} + +

{{ _('Invoices') }}

+ +
+ +
+ +
+
+
+ +

{{ _('Invoices') }}

+

+ View your invoices below. +

+ + + + + + + + + + + + + + {% for invoice in invoices %} + + + + + + + + + + + + + {% endfor %} + +
{{ _('Action') }}Download{{ _('Amount') }}{{ _('Charge Date') }}{{ _('Status') }}{{ _('Plan') }}{{ _('Charge attempts') }}{{ _('Next payment attempt') }}{{ _('Decline code') }}
Pay NowDownload{{ currency_format(invoice.currency, invoice.amount_due) }}{{ invoice.created | timestampToDate }}{{ invoice.status }}{{ invoice.subscribie_subscription.plan.title }}{{ invoice.attempt_count }}{% if invoice.next_payment_attempt is sameas None %} {{ _('Never') }} {% else %} {{ invoice.next_payment_attempt | timestampToDate }} {% endif %} {% if invoice['stripe_decline_code'] == 'unknown' %} {% else %} invoice['stripe_decline_code'] {% endif %}
+ +
+
+
+ + + +{% endblock %}