diff options
Diffstat (limited to 'invoice/generate-invoice.py')
-rwxr-xr-x | invoice/generate-invoice.py | 2 |
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"] |