Leave the bank out of the account rows
This commit is contained in:
1 parent
2f4e4fa713
commit
07e38c537f
1 file changed
+3
@@ -120,6 +120,9 @@ def report(year, conn=None):
|
|||||||
"SELECT id, name, taxable, custody_market_id, sort_order FROM markets"
|
"SELECT id, name, taxable, custody_market_id, sort_order FROM markets"
|
||||||
" ORDER BY sort_order, name"
|
" ORDER BY sort_order, name"
|
||||||
).fetchall()]
|
).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}
|
by_id = {market["id"]: market for market in markets}
|
||||||
holdings = ledger.holdings_at(end_date, conn)
|
holdings = ledger.holdings_at(end_date, conn)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user