From 15ca6c3bf085d3b8947c8c6ff9d238e35d0aca68 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 14 Nov 2026 12:16:15 +0000 Subject: [PATCH] Fix the taxable and informational split in the year report --- tax.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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: