Hi!
I've been practicing with some fake ledger files to get the hang of it, as I'm planning to move my Excel file to it (emacs' ledger-mode was 70% of the motivation for it). I receive my salary in Euros and have to pay things in Real (BRL), so I'd prefer my reports to only speak ony currency. I got it right when registering salary, as you'll see in the link below, but I'm having a problem when trying to pay something with credit card in another currency.
This contains the "evolution" of my tests:
https://gist.github.com/lsmag/016cf95eb739b920568b3518a5c825a7- "ledger-file-1" and friends contain the base state, i.e. everything is working correctly
- "ledger-file-2" and friends contain a credit card transaction in a foreign currency
- "ledger-file-3" and friends contain the same transaction with the "X USD @ $Y" thing
I believe it's somewhat related to how I decided to do envelope budgeting (YNAB style). I created a bunch of virtual accounts and I'm "virtually" moving money out of my checking account to the budget ones. When I pay something I budgeted for, I'll zero out that budget account and pay with whichever kind of money I decide to use. In this particular case I can only pay with credit card, and it's a transaction in dollars, and when I try to put the exchange rate in the file, it "bugs out" in the balance report (the register looks fine, though). It's also worth nothing that the budget accounts are being correctly zeroed
My intention here is:
- I put the transaction in dollars and flag it as pending
- whenever the bank reports the exchange rate, I change it to "cleared" and put the rate on the file
- ...
- profit?
What I don't understand is that the balance is correct on "ledger-file-2" but just adding the exchange rate _seemlingly_ breaks it. So my question is: based on what I'm intending to do, how can I achieve it? Since I'm still learning I'm also open to other ideas on how to structure my ledger file for envelope budgeting.
Thanks in advance,
Lucas Sampaio