working on invoice styling

This commit is contained in:
Thomas Steen Rasmussen 2016-05-30 23:27:23 +02:00
parent b417592baa
commit 65bb088095
2 changed files with 15 additions and 3 deletions

View file

@ -11,7 +11,7 @@ def generate_pdf_letter(filename, template, formatdict):
template=template,
context=formatdict,
cmd_options={
'margin-top': 40,
'margin-top': 60,
'margin-bottom': 50,
},
)

View file

@ -1,7 +1,19 @@
{% load shop_tags %}
This is an invoice.
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<table class="table table-bordered table-hover">
<table style="width:100%;">
<tr>
<td style="text-align: right">Order number: {{ ordernumber }}</td>
</tr>
<tr>
<td style="text-align: right">Invoice number: {{ invoicenumber }}</td>
</tr>
<tr>
<td style="text-align: right">Date: {% now "j/n-Y" %}</td>
</tr>
</table>
<table style="width:100%;">
<thead>
<tr>
<th>