Fix the taxable and informational split in the year report
This commit is contained in:
1 parent
dd2052e43b
commit
15ca6c3bf0
1 file changed
+3
-3
@@ -90,10 +90,10 @@ def report(year, conn=None):
|
|||||||
continue
|
continue
|
||||||
# A transaction counts towards the totals only when its account is
|
# A transaction counts towards the totals only when its account is
|
||||||
# taxable and the transaction itself is ticked as taxable. A
|
# 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"])
|
counted = bool(market["taxable"]) and bool(row["taxable"])
|
||||||
if not market["taxable"] and not row["taxable"]:
|
informational = counted or not market["taxable"]
|
||||||
counted = True
|
|
||||||
if row["type"] == "income":
|
if row["type"] == "income":
|
||||||
value = (row["value_ore"] or 0) - (row["fee_ore"] or 0)
|
value = (row["value_ore"] or 0) - (row["fee_ore"] or 0)
|
||||||
if counted:
|
if counted:
|
||||||
|
|||||||
Reference in new issue
Block a user