Fix bug in invoice rendering

This commit is contained in:
Raphael Michel
2017-07-10 14:43:37 +02:00
parent 714f58e2c5
commit c70301572c

View File

@@ -387,7 +387,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
pgettext('invoice', 'Net value'), pgettext('invoice', 'Gross value'), pgettext('invoice', 'Tax'))]
for rate, gross in grossvalue_map.items():
if line.tax_rate == 0:
if rate == 0:
continue
tax = taxvalue_map[rate]
tdata.append((