working on invoice styling
This commit is contained in:
parent
b417592baa
commit
65bb088095
|
@ -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,
|
||||
},
|
||||
)
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue