container: hledger-flow: add subaccount/network to tax rules

- Creates per-wallet / per-account compliance for IRS Rev. Proc. 2024-28
This commit is contained in:
2024-12-29 19:21:32 -08:00
parent 10e8092ad2
commit 499c171d73
28 changed files with 167 additions and 167 deletions

View File

@@ -1,6 +1,6 @@
# docker-finance | modern accounting for the power-user
#
# Copyright (C) 2021-2024 Aaron Fiore (Founder, Evergreen Crypto LLC)
# Copyright (C) 2021-2025 Aaron Fiore (Founder, Evergreen Crypto LLC)
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -48,14 +48,14 @@ if %direction ^IN$
if %direction ^IN$
& %label Gift
account2 income:electrum:%subaccount:gifts:BTC
comment2 %timestamp,GIFTIN,electrum,BTC,%value_without_fee,USD,%fiat_value,To %subaccount
comment2 %timestamp,GIFTIN,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,To %subaccount
# NOTE: fiat_value must be manually updated in custom rules if your given cost-basis will be different
# OUT
if %direction ^OUT$
account2 expenses:electrum:%subaccount:BTC
comment2 %timestamp,SPEND,electrum,BTC,%value_without_fee,USD,%fiat_value,From %subaccount
comment2 %timestamp,SPEND,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,From %subaccount
if %direction ^OUT$
& %label (Self|Equity transfer|Capital contribution)
@@ -66,7 +66,7 @@ if %direction ^OUT$
if %direction ^OUT$
& %label Gift
account2 expenses:electrum:%subaccount:gifts:BTC
comment2 %timestamp,GIFT,electrum,BTC,%value_without_fee,USD,%fiat_value,From %subaccount
comment2 %timestamp,GIFT,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,From %subaccount
# Fees
if %direction ^OUT$
@@ -76,7 +76,7 @@ if %direction ^OUT$
account4 expenses:electrum:%subaccount:fees:BTC
amount4 %fee BTC
comment txid:%txid, notes:%label, taxed_as:SPEND
comment3 %timestamp,SPEND,electrum,BTC,%fee,USD,%fiat_fee,FEE
comment3 %timestamp,SPEND,electrum:%subaccount:BTC,BTC,%fee,USD,%fiat_fee,FEE
# Using comment3 so a comment2 SPEND isn't overwritten (when applicable)
# vim: sw=2 sts=2 si ai et