From 69421e24232a06762a549741eafd179d158c5c47 Mon Sep 17 00:00:00 2001 From: Aaron Fiore Date: Thu, 2 Jan 2025 22:17:36 -0800 Subject: [PATCH] container: hledger-flow: electrum: use transaction label for tax memo Even though the transaction label is already included as a notes tag, having this information as a memo for tax reports is incredibly helpful. --- .../hledger-flow/accounts/electrum/electrum-shared.rules | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/container/src/hledger-flow/accounts/electrum/electrum-shared.rules b/container/src/hledger-flow/accounts/electrum/electrum-shared.rules index 6da341a..34cc51c 100644 --- a/container/src/hledger-flow/accounts/electrum/electrum-shared.rules +++ b/container/src/hledger-flow/accounts/electrum/electrum-shared.rules @@ -45,13 +45,13 @@ if %direction ^IN$ & %label (Income|Payment) account2 income:electrum:%subaccount:BTC comment txid:%txid, notes:%label, direction:%direction, taxed_as:INCOME - comment2 %timestamp,INCOME,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,Payment received + comment2 %timestamp,INCOME,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,%label if %direction ^IN$ & %label Gift account2 income:electrum:%subaccount:gifts:BTC comment txid:%txid, notes:%label, direction:%direction, taxed_as:GIFTIN - comment2 %timestamp,GIFTIN,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,To %subaccount + comment2 %timestamp,GIFTIN,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,%label # NOTE: fiat_value must be manually updated in custom rules if your given cost-basis will be different # OUT @@ -59,7 +59,7 @@ if %direction ^IN$ if %direction ^OUT$ account2 expenses:electrum:%subaccount:BTC comment txid:%txid, notes:%label, taxed_as:SPEND - comment2 %timestamp,SPEND,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,From %subaccount + comment2 %timestamp,SPEND,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,%label if %direction ^OUT$ & %label (Self|Equity transfer|Capital contribution) @@ -72,7 +72,7 @@ if %direction ^OUT$ & %label Gift account2 expenses:electrum:%subaccount:gifts:BTC comment txid:%txid, notes:%label, direction:%direction, taxed_as:GIFT - comment2 %timestamp,GIFT,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,From %subaccount + comment2 %timestamp,GIFT,electrum:%subaccount:BTC,BTC,%value_without_fee,USD,%fiat_value,%label # Fees if %direction ^OUT$