Hi All, I'm a bit new to Ledger, so I hope someone can help me with a simple answer to the question below. (Couldnt find anything before in the group)
I have 2 transactions in Ledger that represent an expense in USD, but which my credit card company charges in EUR. So, the transactions are like: 2013/10/29 HostingCorp Liabilities:Mastercard EUR -15.00 Expenses:Hosting USD 20.00 2013/11/29 HostingCorp Liabilities:Mastercard EUR -15.21 Expenses:Hosting USD 20.00 When I look at the register, Ledger reevaluates the USD/EUR rates after the 2nd transation, leading to a EUR 0.21 difference: ledger reg -f data.txt -X EUR 13-Oct-29 HostingCorp Liabilities:Mastercard EUR -15.00 EUR > -15.00 > Expenses:Hosting EUR 15.00 > 0 > 13-Nov-29 Commodities revalued <Revalued> EUR 0.21 > EUR 0.21 > 13-Nov-29 HostingCorp Liabilities:Mastercard EUR -15.21 EUR > -15.00 > Expenses:Hosting EUR 15.21 > EUR 0.21 > > ledger bal -f data.txt -X EUR > EUR 30.42 Expenses:Hosting > EUR -30.21 Liabilities:Mastercard > -------------------- > EUR 0.21 Any tips on how to prevent this? I have tried fixing the lot price with '@@ EUR 15.21', etc but that didn't work. Also adding a rule on expenses just seems to make it worse: > = /^Expenses:/ > ; VALUE:: market(amount, post.date, exchange) Results in > ledger reg -f data.txt -X EUR 13-Oct-29 HostingCorp Liabilities:Mastercard EUR -15.00 EUR > -15.00 > Expenses:Hosting EUR 300.00 EUR > 285.00 > 13-Nov-29 HostingCorp Liabilities:Mastercard EUR -15.21 EUR > 269.79 > Expenses:Hosting EUR 304.20 EUR > 573.99 > EUR 604.20 Expenses:Hosting > EUR -30.21 Liabilities:Mastercard > -------------------- > EUR 573.99 -- --- You received this message because you are subscribed to the Google Groups "Ledger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
