summaryrefslogtreecommitdiff
path: root/fracture
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2021-01-25 15:50:25 +0100
committerEkaitz Zarraga <ekaitz@elenq.tech>2021-01-25 15:50:25 +0100
commit8abd36e765e9092bb0f9821b92afa7c8e1731fac (patch)
tree914ea4c165b809c765a291b9c4872465eaef1ce6 /fracture
parentba9457d3554ae5bb4df6cb054d39ba1d2b644f1b (diff)
Don't set taxes when block is empty
Diffstat (limited to 'fracture')
-rw-r--r--fracture/invoice.py2
1 files changed, 1 insertions, 1 deletions
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 """