From fa90297a85ae93893441f55ca76d9a549e6a2dfa Mon Sep 17 00:00:00 2001 From: Christopher Neugebauer Date: Sun, 4 Jun 2017 14:12:10 -0700 Subject: [PATCH] Moves invoice and invoice_details to registration --- .../registrasion/_invoice_details.html | 57 ------------------- pinaxcon/templates/registrasion/invoice.html | 40 ------------- 2 files changed, 97 deletions(-) delete mode 100644 pinaxcon/templates/registrasion/_invoice_details.html delete mode 100644 pinaxcon/templates/registrasion/invoice.html diff --git a/pinaxcon/templates/registrasion/_invoice_details.html b/pinaxcon/templates/registrasion/_invoice_details.html deleted file mode 100644 index cfd18cb..0000000 --- a/pinaxcon/templates/registrasion/_invoice_details.html +++ /dev/null @@ -1,57 +0,0 @@ -{% load registrasion_tags %} - -

Invoice

- -{% with invoice_user=invoice.cart.user %} - -{% endwith %} - -

This invoice has been issued as a result of an application to attend (conference name).

- - - - - - - - - - {% for line_item in invoice.lineitem_set.all %} - - - - - - - {% endfor %} - - - - - -
DescriptionQuantityPrice/UnitTotal
{{ line_item.description }}{{ line_item.quantity }}${{ line_item.price }}${{ line_item.total_price }}
TOTAL${{ invoice.value }}
- - - - - - - - - - - -
Total payments:${{ invoice.total_payments }}
Balance due:${{ invoice.balance_due }}
- -{% if invoice.paymentbase_set.all %} -

Payments received

- {% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %} -{% endif %} diff --git a/pinaxcon/templates/registrasion/invoice.html b/pinaxcon/templates/registrasion/invoice.html deleted file mode 100644 index 39e45fd..0000000 --- a/pinaxcon/templates/registrasion/invoice.html +++ /dev/null @@ -1,40 +0,0 @@ -{% extends "site_base.html" %} -{% load bootstrap %} -{% load registrasion_tags %} -{% block body %} - - -{% if invoice.is_unpaid %} -

NOTICE: The below invoice is automatically generated, and will be voided - if you amend your registration before payment, or if discounts or products contained in the - invoice become unavailable. The items and discounts are only reserved until - the invoice due time.

- - {% url "invoice_access" invoice.user.attendee.access_code as access_url %} -

Your most recent unpaid invoice will be available at - {{ request.scheme }}://{{ request.get_host }}{{ access_url }} - You can give this URL to your accounts department to pay your registration.

- -
- Pay this invoice (dummy) - Pay this invoice with Stripe - {% if user.is_staff %} - Apply manual payment - {% endif %} -
-{% elif invoice.is_paid %} - {% if user.is_staff %} -
- {% if user.is_staff %} - Apply manual payment/refund - Refund by issuing credit note - {% endif %} -
- {% endif %} -{% endif %} - -
- -{% include "registrasion/_invoice_details.html" %} - -{% endblock %}