From aff75a66eba99a0ec8f1051581f77046262e3d43 Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 1 Oct 2018 20:44:25 +1300 Subject: [PATCH] Print improvements --- .../registrasion/_invoice_details.html | 76 ++++++++++--------- .../templates/registrasion/payment_list.html | 24 +++--- static/src/scss/app.scss | 43 +++++++++++ 3 files changed, 97 insertions(+), 46 deletions(-) diff --git a/pinaxcon/templates/registrasion/_invoice_details.html b/pinaxcon/templates/registrasion/_invoice_details.html index d97c5df4..aac6070e 100644 --- a/pinaxcon/templates/registrasion/_invoice_details.html +++ b/pinaxcon/templates/registrasion/_invoice_details.html @@ -25,51 +25,55 @@

This invoice has been issued as a result of an application to attend {% conference_name %}. All amounts are in New Zealand Dollars (NZD).

- - - - - - - - {% for line_item in invoice.lineitem_set.all %} +
DescriptionQuantityPrice/UnitTotal
+ - - - - + + + + - {% endfor %} + + + {% for line_item in invoice.lineitem_set.all %} + + + + + + + {% endfor %} - + - - - - - - - - - - - - - - - - - {% if invoice.is_unpaid or invoice.is_paid %} - - + + - {% endif %} + + + + + + + + + + + + + {% if invoice.is_unpaid or invoice.is_paid %} + + + + + {% endif %} +
{{ line_item.description }}{{ line_item.quantity }}${{ line_item.price }}${{ line_item.total_price }}DescriptionQuantityPrice/UnitTotal
{{ line_item.description }}{{ line_item.quantity }}${{ line_item.price }}${{ line_item.total_price }}
Includes 15% New Zealand Goods and Services Tax${{ invoice.value|gst}}
Total${{ invoice.value }}
Total payments received:${{ invoice.total_payments }}
Balance due:${{ invoice.balance_due }}Includes 15% New Zealand Goods and Services Tax${{ invoice.value|gst}}
Total${{ invoice.value }}
Total payments received:${{ invoice.total_payments }}
Balance due:${{ invoice.balance_due }}
{% if invoice.paymentbase_set.all %} -
-

Payments received

+
+

Payments received

{% include "registrasion/payment_list.html" with payments=invoice.paymentbase_set.all %} {% endif %} diff --git a/pinaxcon/templates/registrasion/payment_list.html b/pinaxcon/templates/registrasion/payment_list.html index 7c2edbc3..ac5cd9b4 100644 --- a/pinaxcon/templates/registrasion/payment_list.html +++ b/pinaxcon/templates/registrasion/payment_list.html @@ -1,16 +1,20 @@ {% if payments %} - - - - - - {% for payment in payments %} + - - - + + + - {% endfor %} + + + {% for payment in payments %} + + + + + + {% endfor %} +
Payment timeReferenceAmount
{{payment.time}}{{payment.reference}}{{payment.amount}}Payment timeReferenceAmount
{{payment.time}}{{payment.reference}}{{payment.amount}}
{% endif %} diff --git a/static/src/scss/app.scss b/static/src/scss/app.scss index efb46cba..ac0fc3a2 100644 --- a/static/src/scss/app.scss +++ b/static/src/scss/app.scss @@ -459,6 +459,49 @@ hr { .hidden-print { display: none !important } + + .page-break { + page-break-after: always; + } + + .jumbotron { + font-size: 8pt; + padding: 0; + background-color: white; + border: none; + color: #000; + + h3 { + margin-top: 4rem; + } + + h4 { + margin-top: 2rem; + } + + table { + margin-top: 2rem; + border: none !important; + + th, td { + padding: 0.75rem 0; + border: none; + } + + thead th { + border-bottom: 1px solid black; + } + + th[colspan="4"] { + display: none; + + } + } + } + + footer { + display: none !important; + } } .card-group.key-dates {