summaryrefslogtreecommitdiffstats
path: root/invoice/generate-invoice.py
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2012-06-09 10:27:15 +0200
committerSebastian Reichel <sre@ring0.de>2012-06-09 10:27:15 +0200
commit2f5d5e91827b552997864762ecd6a0366255d8a5 (patch)
tree49001f55449ce9dd92bf1fa5f6bf26fa1d414f30 /invoice/generate-invoice.py
parenta7923aee8f3029e6db261a06c883fa9135a621e9 (diff)
downloadserial-barcode-scanner-2f5d5e91827b552997864762ecd6a0366255d8a5.tar.bz2
fix latex generation of m&m´s Peanut Big Pack
Diffstat (limited to 'invoice/generate-invoice.py')
-rwxr-xr-xinvoice/generate-invoice.py2
1 files changed, 2 insertions, 0 deletions
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"]