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