On Nov 23, 2009, at 4:56 PM, jleija wrote:
> I noticed a weird behaviour when doing a 'reg' on a multi-currency
> file (Mexican peso, Guatemalan quetzal and usd). I'm using ledger v.
> 2.6.2 in Ubuntu linux, 64 bit. Here is my command:
Ledger 2.6.2 does not alert you when commodities have been revalued behind the
scenes. If you did this with Ledger 3 (current 'master'), you'd see a posting
with the account "<Revalued>":
08-May-29 jlopez airfare t.. co:li:pa:jl:cash $-133.82 $-133.82
08-May-30 jlopez dinner in.. co:li:pa:jl:cash $-50.43 $-184.25
08-May-31 jlopez dinner in.. co:li:pa:jl:cash $-138.44 $-322.69
08-Jun-09 Check 1004 - tra.. co:li:pa:jl:cash $335.00 $12.31
08-Jul-03 jlopez airfare t.. co:li:pa:jl:cash $-347.26 $-334.95
08-Jul-06 jlopez meal with.. co:li:pa:jl:cash $-112.55 $-447.50
09-Jul-06 Check 1012 co:li:pa:jl:cash $614.99 $167.49
09-Jul-13 Commodity rounding <Rounding> $0.01 $167.50
09-Jul-13 Commodities reva.. <Revalued> $-9.20 $158.30
09-Jul-13 jlopez meal at B.. co:li:pa:jl:cash $-27.90 $130.40
09-Jul-15 Car Gas co:li:pa:jl:cash $-30.00 $100.40
09-Jul-20 Commodities reva.. <Revalued> $133.38 $233.78
09-Jul-20 Commodity rounding <Rounding> $0.01 $233.79
09-Jul-20 Car Gas co:li:pa:jl:cash $-8.22 $225.57
09-Jul-20 Commodity rounding <Rounding> $-0.01 $225.56
09-Jul-20 jlopez parking i.. co:li:pa:jl:cash $-1.49 $224.07
You can see the $133.38 there, which happened because of this line:
P 2009/07/20 mxn $0.074685387
You see, if you run the report without -V, you see this on 7/15:
09-Jul-15 Car Gas co:li:pa:jl:cash -300.00 mxn $816.17
-5269.01 mxn
-1322.10 qzl
That's a pretty large negative balance of mxn. So, even small price
fluctuations are going to cause noticeable changes in the overall value. In
this case, because mxn gets a fair bit cheaper on 7/20 ($0.30 per), it means
your loss is much less, hence the increase in overall dollar value of the
account.
John