diff options
Diffstat (limited to 'invoice')
-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', |