Skip to content

Instantly share code, notes, and snippets.

@adept
Created October 10, 2019 20:24
Show Gist options
  • Save adept/585059d7968a9a1dc41c412983a45726 to your computer and use it in GitHub Desktop.
Save adept/585059d7968a9a1dc41c412983a45726 to your computer and use it in GitHub Desktop.
hledger does not like currency conversions
# This is fine
$ hledger bal -f paypal.journal
£-100 cash
2 SHR shares
--------------------
2 SHR
£-100
# Attempt to report cost makes paypal account go blerghhh :(
$ hledger bal -f paypal.journal --cost
£-100 cash
$-100
£100 paypal
$100 shares
--------------------
0
2019-01-01 Fund paypal in £££
cash -£100
paypal
2019-01-03 Convert £ to $ in paypal account
paypal -£100
paypal +$100
2019-01-03 Buy some shares with paypal
paypal -$100
shares 2 SHR @ $50
@adept
Copy link
Author

adept commented Oct 10, 2019

There seems to be no way to get rid of "-$100 +£100" when using --cost :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment