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
@@ -46,7 +46,7 @@ if %direction ^OUT$
account4 expenses:bittrex:%subaccount:fees:withdrawals:%currency_one
amount4 %fees %currency_one
comment type:%type, code:%code_, destination:%destination, txid:%txid, taxed_as:SPEND
comment2 %date +0000,SPEND,bittrex,%currency_one,%fees,USD,,FEE
comment2 %date +0000,SPEND,bittrex:%subaccount,%currency_one,%fees,USD,,FEE
################################################################################
# #
@@ -73,12 +73,12 @@ if %type ^TRADE$
if %type ^TRADE$
& %order_type ^BUY$
comment2 %date +0000,BUY,bittrex,%currency_one,%amount_,%currency_two,%cost_basis,,
comment2 %date +0000,BUY,bittrex:%subaccount,%currency_one,%amount_,%currency_two,%cost_basis,,
if %type ^TRADE$
& %order_type ^BUY$
& %fees [1-9]
comment2 %date +0000,BUY,bittrex,%currency_one,%amount_,%currency_two,%cost_basis,%currency_two,%fees
comment2 %date +0000,BUY,bittrex:%subaccount,%currency_one,%amount_,%currency_two,%cost_basis,%currency_two,%fees
# TODO: HACK: re: #51, FeeCurrency and Fee are added even though cost_basis is calculated (for non-fiat fee disposal, see lib_taxes)
# TODO: HACK: see #51 and respective lib_taxes work-around
@@ -86,7 +86,7 @@ if %type ^TRADE$
& %order_type ^BUY$
& %fees [1-9]
& %currency_two ^USD$
comment2 %date +0000,BUY,bittrex,%currency_one,%amount_,%currency_two,%cost_basis,,
comment2 %date +0000,BUY,bittrex:%subaccount,%currency_one,%amount_,%currency_two,%cost_basis,,
#
# SELL
@@ -95,12 +95,12 @@ if %type ^TRADE$
if %type ^TRADE$
& %order_type ^SELL$
amount -%amount_ %currency_one @@ %proceeds %currency_two
comment2 %date +0000,SELL,bittrex,%currency_one,%amount_,%currency_two,%cost_basis,,
comment2 %date +0000,SELL,bittrex:%subaccount,%currency_one,%amount_,%currency_two,%cost_basis,,
if %type ^TRADE$
& %order_type ^SELL$
& %fees [1-9]
comment2 %date +0000,SELL,bittrex,%currency_one,%amount_,%currency_two,%cost_basis,%currency_two,%fees
comment2 %date +0000,SELL,bittrex:%subaccount,%currency_one,%amount_,%currency_two,%cost_basis,%currency_two,%fees
# TODO: HACK: re: #51, FeeCurrency and Fee are added even though cost_basis is calculated (for non-fiat fee disposal, see lib_taxes)
# TODO: HACK: see #51 and respective lib_taxes work-around
@@ -108,6 +108,6 @@ if %type ^TRADE$
& %order_type ^SELL$
& %fees [1-9]
& %currency_two ^USD$
comment2 %date +0000,SELL,bittrex,%currency_one,%amount_,%currency_two,%cost_basis,,
comment2 %date +0000,SELL,bittrex:%subaccount,%currency_one,%amount_,%currency_two,%cost_basis,,
# vim: sw=2 sts=2 si ai et