From 2f5d5e91827b552997864762ecd6a0366255d8a5 Mon Sep 17 00:00:00 2001 From: Sebastian Reichel Date: Sat, 9 Jun 2012 10:27:15 +0200 Subject: fix latex generation of m&m´s Peanut Big Pack MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- invoice/generate-invoice.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'invoice/generate-invoice.py') diff --git a/invoice/generate-invoice.py b/invoice/generate-invoice.py index e414b5a..7fe7966 100755 --- a/invoice/generate-invoice.py +++ b/invoice/generate-invoice.py @@ -111,6 +111,8 @@ def generate_invoice_tex(user, title, subject, start=0, stop=0, temporary=False) for row in get_invoice_data(user, start, stop): total += row["price"] + row["product"] = row["product"].replace("&", "\\&") + if lastdate != row["date"]: result += "\t\t\t\t%s\t& %s\t& %s\t& \\EUR{%d,%02d}\\\\\n" % (row["date"], row["time"], row["product"], row["price"] / 100, row["price"] % 100) lastdate = row["date"] -- cgit v1.2.3