Only display tax rates with non-zero gross amount

This commit is contained in:
Mira
2025-01-17 15:24:09 +01:00
committed by GitHub
parent 0dce6464ad
commit 784b588aa8

View File

@@ -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']),