mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Only display tax rates with non-zero gross amount (#4760)
This commit is contained in:
@@ -775,6 +775,8 @@ class ClassicInvoiceRenderer(BaseReportlabInvoiceRenderer):
|
|||||||
|
|
||||||
for idx, gross in grossvalue_map.items():
|
for idx, gross in grossvalue_map.items():
|
||||||
rate, name = idx
|
rate, name = idx
|
||||||
|
if rate == 0 and gross == 0:
|
||||||
|
continue
|
||||||
tax = taxvalue_map[idx]
|
tax = taxvalue_map[idx]
|
||||||
tdata.append([
|
tdata.append([
|
||||||
Paragraph(self._normalize(localize(rate) + " % " + name), self.stylesheet['Fineprint']),
|
Paragraph(self._normalize(localize(rate) + " % " + name), self.stylesheet['Fineprint']),
|
||||||
|
|||||||
Reference in New Issue
Block a user