Count the admin cost in kroner and leave the dead fee out of the income
This commit is contained in:
1 parent
6b87818eef
commit
17987245fa
1 file changed
+2
-2
@@ -128,13 +128,13 @@ def report(year, conn=None):
|
||||
for market in markets
|
||||
}
|
||||
income_ore = 0
|
||||
admin_cost_sats = 0
|
||||
admin_cost_ore = 0
|
||||
for row in _year_rows(conn, year):
|
||||
if row["type"] == "admin_cost":
|
||||
# It has no account and changes no holdings (section 3.10), so it
|
||||
# is counted from its own taxable flag and from nothing else.
|
||||
if row["taxable"]:
|
||||
admin_cost_sats += row["leg_out_sats"] or 0
|
||||
admin_cost_ore += row["leg_out_ore"] or 0
|
||||
continue
|
||||
market = by_id.get(row["market_id"])
|
||||
if market is None:
|
||||
|
||||
Reference in new issue
Block a user