diff --git a/tax.py b/tax.py index 44d2a23..603b43b 100644 --- a/tax.py +++ b/tax.py @@ -90,10 +90,10 @@ def report(year, conn=None): continue # A transaction counts towards the totals only when its account is # taxable and the transaction itself is ticked as taxable. A - # non-taxable account keeps its own figures for information only. + # non-taxable account keeps its own figures for information only, + # and never enters a total. counted = bool(market["taxable"]) and bool(row["taxable"]) - if not market["taxable"] and not row["taxable"]: - counted = True + informational = counted or not market["taxable"] if row["type"] == "income": value = (row["value_ore"] or 0) - (row["fee_ore"] or 0) if counted: