Partially revert de597ba86

This commit is contained in:
Raphael Michel
2021-03-02 09:30:27 +01:00
parent 8af91b691d
commit a09dac89c4

View File

@@ -529,10 +529,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
for line in self.invoice.lines.all(): for line in self.invoice.lines.all():
if has_taxes: if has_taxes:
tdata.append(( tdata.append((
Paragraph( Paragraph(line.description, self.stylesheet['Normal']),
bleach.clean(line.description, tags=[]).strip().replace('\n', '<br />\n'),
self.stylesheet['Normal']
),
"1", "1",
localize(line.tax_rate) + " %", localize(line.tax_rate) + " %",
money_filter(line.net_value, self.invoice.event.currency), money_filter(line.net_value, self.invoice.event.currency),
@@ -540,10 +537,7 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
)) ))
else: else:
tdata.append(( tdata.append((
Paragraph( Paragraph(line.description, self.stylesheet['Normal']),
bleach.clean(line.description, tags=[]).strip().replace('\n', '<br />\n'),
self.stylesheet['Normal']
),
"1", "1",
money_filter(line.gross_value, self.invoice.event.currency), money_filter(line.gross_value, self.invoice.event.currency),
)) ))