container: hledger-flow: electrum: add tax related to rules
This commit is contained in:
@@ -44,10 +44,13 @@ if %direction ^IN$
|
|||||||
if %direction ^IN$
|
if %direction ^IN$
|
||||||
& %label (Income|Payment)
|
& %label (Income|Payment)
|
||||||
account2 income:electrum:%subaccount:BTC
|
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
|
||||||
|
|
||||||
if %direction ^IN$
|
if %direction ^IN$
|
||||||
& %label Gift
|
& %label Gift
|
||||||
account2 income:electrum:%subaccount:gifts:BTC
|
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,To %subaccount
|
||||||
# NOTE: fiat_value must be manually updated in custom rules if your given cost-basis will be different
|
# NOTE: fiat_value must be manually updated in custom rules if your given cost-basis will be different
|
||||||
|
|
||||||
@@ -55,17 +58,20 @@ if %direction ^IN$
|
|||||||
|
|
||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
account2 expenses:electrum:%subaccount:BTC
|
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,From %subaccount
|
||||||
|
|
||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
& %label (Self|Equity transfer|Capital contribution)
|
& %label (Self|Equity transfer|Capital contribution)
|
||||||
account2 equity:electrum:%subaccount:deposit:BTC
|
account2 equity:electrum:%subaccount:deposit:BTC
|
||||||
|
comment txid:%txid, notes:%label, direction:%direction
|
||||||
comment2
|
comment2
|
||||||
# NOTE: custom rule equity transfers should also clear comment2
|
# NOTE: custom rule equity transfers should also clear comment2
|
||||||
|
|
||||||
if %direction ^OUT$
|
if %direction ^OUT$
|
||||||
& %label Gift
|
& %label Gift
|
||||||
account2 expenses:electrum:%subaccount:gifts:BTC
|
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,From %subaccount
|
||||||
|
|
||||||
# Fees
|
# Fees
|
||||||
@@ -75,7 +81,7 @@ if %direction ^OUT$
|
|||||||
amount3 -%fee BTC
|
amount3 -%fee BTC
|
||||||
account4 expenses:electrum:%subaccount:fees:BTC
|
account4 expenses:electrum:%subaccount:fees:BTC
|
||||||
amount4 %fee BTC
|
amount4 %fee BTC
|
||||||
comment txid:%txid, notes:%label, taxed_as:SPEND
|
comment txid:%txid, notes:%label, direction:%direction, taxed_as:SPEND
|
||||||
comment3 %timestamp,SPEND,electrum:%subaccount:BTC,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)
|
# Using comment3 so a comment2 SPEND isn't overwritten (when applicable)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user