From 070cdeb2b9e8efdb7c85740948a309b21e40e407 Mon Sep 17 00:00:00 2001 From: Bernat Brunet Torruella Date: Thu, 3 Jan 2019 15:58:16 +0100 Subject: [PATCH] Fix bug when add SII keys to invoice automatically based on tax definition --- invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoice.py b/invoice.py index 3bd102e..dde949e 100644 --- a/invoice.py +++ b/invoice.py @@ -168,7 +168,7 @@ class Invoice: def _set_sii_keys(self): tax = None for t in self.taxes: - if t.tax.tax_used: + if t.tax.sii_book_key: tax = t.tax break if not tax: