From 8abd36e765e9092bb0f9821b92afa7c8e1731fac Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Mon, 25 Jan 2021 15:50:25 +0100 Subject: Don't set taxes when block is empty --- fracture/invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'fracture') diff --git a/fracture/invoice.py b/fracture/invoice.py index a27d50a..981efa0 100644 --- a/fracture/invoice.py +++ b/fracture/invoice.py @@ -95,7 +95,7 @@ class Invoice: self.products = products or (Product(Invoice.DEFAULT_PRODUCT_DESC), Product(Invoice.DEFAULT_PRODUCT_DESC)) self.customer = customer or Customer(Invoice.DEFAULT_CUSTOMER_DESC) - self.taxes = taxes or Invoice.DEFAULT_TAXES + self.taxes = taxes if taxes != None else Invoice.DEFAULT_TAXES def set_series(self, series): """ Series is an integer """ -- cgit v1.2.3