diff options
author | Sebastian Reichel <sre@ring0.de> | 2012-06-09 10:27:15 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@ring0.de> | 2012-06-09 10:27:15 +0200 |
commit | 2f5d5e91827b552997864762ecd6a0366255d8a5 (patch) | |
tree | 49001f55449ce9dd92bf1fa5f6bf26fa1d414f30 | |
parent | a7923aee8f3029e6db261a06c883fa9135a621e9 (diff) | |
download | serial-barcode-scanner-2f5d5e91827b552997864762ecd6a0366255d8a5.tar.bz2 |
fix latex generation of m&m´s Peanut Big Pack
-rwxr-xr-x | invoice/generate-invoice.py | 2 | ||||
-rw-r--r-- | invoice/ktt-template.lco | 3 |
2 files changed, 5 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"] diff --git a/invoice/ktt-template.lco b/invoice/ktt-template.lco index 599afe8..d7352a0 100644 --- a/invoice/ktt-template.lco +++ b/invoice/ktt-template.lco @@ -2,11 +2,14 @@ \usepackage{ifpdf} \usepackage{longtable} \usepackage[utf8]{inputenc} +\usepackage[T1]{fontenc} \usepackage[german]{babel} \usepackage{graphicx} \usepackage{pgf} \usepackage{calc} \usepackage[right]{eurosym} +\usepackage{lmodern} +\usepackage{textcomp} %% %% This is file `DIN.lco', |