From 65bb0880951c925e35ebe3ad1b5666830cd2f5d7 Mon Sep 17 00:00:00 2001 From: Thomas Steen Rasmussen Date: Mon, 30 May 2016 23:27:23 +0200 Subject: [PATCH] working on invoice styling --- shop/pdf.py | 2 +- shop/templates/invoice.html | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/shop/pdf.py b/shop/pdf.py index 57759aaa..1d0c2915 100644 --- a/shop/pdf.py +++ b/shop/pdf.py @@ -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, }, ) diff --git a/shop/templates/invoice.html b/shop/templates/invoice.html index 64807bee..7900b764 100644 --- a/shop/templates/invoice.html +++ b/shop/templates/invoice.html @@ -1,7 +1,19 @@ {% load shop_tags %} -This is an invoice. + - +
+ + + + + + + + + +
Order number: {{ ordernumber }}
Invoice number: {{ invoicenumber }}
Date: {% now "j/n-Y" %}
+ +