From 87c987fee53697cd1ba9e9dffa6efb4ec43bfa66 Mon Sep 17 00:00:00 2001 From: Mira Date: Mon, 20 Jan 2025 14:49:04 +0100 Subject: [PATCH] Only display tax rates with non-zero gross amount (#4760) --- src/pretix/base/invoice.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pretix/base/invoice.py b/src/pretix/base/invoice.py index ef9d00bf0d..5a25a3e23b 100644 --- a/src/pretix/base/invoice.py +++ b/src/pretix/base/invoice.py @@ -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']),