diff --git a/tax.py b/tax.py index 93c16c5..f8c45ff 100644 --- a/tax.py +++ b/tax.py @@ -120,6 +120,9 @@ def report(year, conn=None): "SELECT id, name, taxable, custody_market_id, sort_order FROM markets" " ORDER BY sort_order, name" ).fetchall()] + # The bank pays the costs and is nobody's holding (section 3.11). + bank_id = int(settings.get("bank_market_id") or 0) + markets = [market for market in markets if market["id"] != bank_id] by_id = {market["id"]: market for market in markets} holdings = ledger.holdings_at(end_date, conn)