forked from EvergreenCrypto/docker-finance
Merge pull request #43 into master
bab3021hledger-flow: electrum: add GIFTIN fiat_value cost-basis note (Aaron Fiore)5951fafhledger-flow: electrum: add fiat_value to all outgoing expenses (Aaron Fiore)5d0942ehledger-flow: electrum: add subaccount to applicable memos (Aaron Fiore)8786090hledger-flow: electrum: clarify SPEND comment (Aaron Fiore)
This commit is contained in:
@@ -48,13 +48,14 @@ if %direction ^IN$
|
|||||||
if %direction ^IN$
|
if %direction ^IN$
|
||||||
& %label Gift
|
& %label Gift
|
||||||
account2 income:electrum:%subaccount:gifts:BTC
|
account2 income:electrum:%subaccount:gifts:BTC
|
||||||
comment2 %timestamp,GIFTIN,electrum,BTC,%value_without_fee,USD,%fiat_value,Unknown
|
comment2 %timestamp,GIFTIN,electrum,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
|
# OUT
|
||||||
|
|
||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
account2 expenses:electrum:%subaccount:BTC
|
account2 expenses:electrum:%subaccount:BTC
|
||||||
comment2 %timestamp,SPEND,electrum,BTC,%value_without_fee,USD,,
|
comment2 %timestamp,SPEND,electrum,BTC,%value_without_fee,USD,%fiat_value,From %subaccount
|
||||||
|
|
||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
& %label (Self|Equity transfer|Capital contribution)
|
& %label (Self|Equity transfer|Capital contribution)
|
||||||
@@ -65,7 +66,7 @@ if %direction ^OUT$
|
|||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
& %label Gift
|
& %label Gift
|
||||||
account2 expenses:electrum:%subaccount:gifts:BTC
|
account2 expenses:electrum:%subaccount:gifts:BTC
|
||||||
comment2 %timestamp,GIFT,electrum,BTC,%value_without_fee,USD,%fiat_value,Unknown
|
comment2 %timestamp,GIFT,electrum,BTC,%value_without_fee,USD,%fiat_value,From %subaccount
|
||||||
|
|
||||||
# Fees
|
# Fees
|
||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
@@ -76,6 +77,6 @@ if %direction ^OUT$
|
|||||||
amount4 %fee BTC
|
amount4 %fee BTC
|
||||||
comment txid:%txid, notes:%label, taxed_as:SPEND
|
comment txid:%txid, notes:%label, taxed_as:SPEND
|
||||||
comment3 %timestamp,SPEND,electrum,BTC,%fee,USD,%fiat_fee,FEE
|
comment3 %timestamp,SPEND,electrum,BTC,%fee,USD,%fiat_fee,FEE
|
||||||
# comment3 so account2 SPEND isn't overwritten, when applicable
|
# Using comment3 so a comment2 SPEND isn't overwritten (when applicable)
|
||||||
|
|
||||||
# vim: sw=2 sts=2 si ai et
|
# vim: sw=2 sts=2 si ai et
|
||||||
|
|||||||
Reference in New Issue
Block a user