bornhack-website/shop/templates/pdf/invoice.html
Thomas Steen Rasmussen 4fcb838ce8 invoice styling
2016-05-31 08:35:54 +02:00

75 lines
1.9 KiB
HTML

{% load static from staticfiles %}
{% load shop_tags %}
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<table style="width:100%;">
<tr>
<td style="width: 60%;">&nbsp;</td>
<td><h3>Order #{{ invoice.order.pk }}</h3></td>
</tr>
<tr>
<td style="width: 60%;">&nbsp;</td>
<td><h3>Invoice #{{ invoice.pk }}</h3></td>
</tr>
<tr>
<td style="width: 60%;">&nbsp;</td>
<td><h3>Date {{ invoice.created|date:"b jS, Y" }}</h3></td>
</tr>
</table>
<br>
<br>
<br>
<h2>Products</h2>
<table style="width:90%; margin:1em;">
<tr>
<td>
<b>Name
<td>
<b>Quantity
<td>
<b>Price
<td>
<b>Total
{% for order_product in invoice.order.orderproductrelation_set.all %}
<tr>
<td>
{{ order_product.product.name }}
<td>
{{ order_product.quantity }}
<td>
{{ order_product.product.price|currency }}
<td>
{{ order_product.total|currency }}
{% endfor %}
<tr>
<td colspan="2">
<td>
<strong>Danish VAT (25%)</strong>
<td>
{{ invoice.order.vat|currency }}
<tr>
<td colspan="2">
<td>
<strong>Total</strong>
<td>
{{ invoice.order.total|currency }}
</table>
<h3>The order has been paid in full.</h3>
<p>
<ul>
<li>Tickets will be generated before the event and can be downloaded from the webshop by then.</li>
<li>Merchandise can be picked up from the info booth during the event.</li>
<li>Accomodation/lodges and village tents will be available when the event begins.</li>
</ul>
</p>
<p>Note: Danish law grants everyone a 14 days 'cooling-off' period for
internet purchases, in which the customer can regret the purchase for any
reason (including just changing your mind). In case you regret this purchase
please contact us on info@bornhack.org for a full refund. This is possible until
<b>{{ invoice.regretdate|date:"b jS, Y" }}</b></p>