2016-05-30 16:09:21 +00:00
|
|
|
{% load shop_tags %}
|
2016-05-30 21:27:23 +00:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
2016-05-30 16:09:21 +00:00
|
|
|
|
2016-05-30 21:27:23 +00:00
|
|
|
<table style="width:100%;">
|
|
|
|
<tr>
|
2016-05-31 04:51:30 +00:00
|
|
|
<td style="text-align: right">Order number: {{ invoice.order.pk }}</td>
|
2016-05-30 21:27:23 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2016-05-31 04:51:30 +00:00
|
|
|
<td style="text-align: right">Invoice number: {{ invoice.pk }}</td>
|
2016-05-30 21:27:23 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td style="text-align: right">Date: {% now "j/n-Y" %}</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
|
2016-05-31 04:51:30 +00:00
|
|
|
<table style="width:100%;" border=1>
|
2016-05-30 16:09:21 +00:00
|
|
|
<tr>
|
2016-05-31 04:51:30 +00:00
|
|
|
<td>
|
|
|
|
<b>Name
|
|
|
|
<td>
|
|
|
|
<b>Quantity
|
|
|
|
<td>
|
|
|
|
<b>Price
|
|
|
|
<td>
|
|
|
|
<b>Total
|
2016-05-30 16:09:21 +00:00
|
|
|
{% 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>
|
2016-05-31 04:51:30 +00:00
|
|
|
<strong>Danish VAT (25%)</strong>
|
2016-05-30 16:09:21 +00:00
|
|
|
<td>
|
|
|
|
{{ order.vat|currency }}
|
|
|
|
|
|
|
|
<tr>
|
|
|
|
<td colspan="2">
|
|
|
|
<td>
|
|
|
|
<strong>Total</strong>
|
|
|
|
<td>
|
|
|
|
{{ order.total|currency }}
|
|
|
|
|
|
|
|
</table>
|