On Nov 24, 2009, at 7:22 PM, jleija wrote:

> With the P directive I wanted to group a bunch of transactions from
> the same day, or even multiple days (with very similar exchange
> rates). Also, when I use the @ I loose the balance in actual
> currencies and I get it all in $ (I don't really know how valuable
> those reports would be with their original currencies, it just feels
> bad that I'm loosing information that is otherwise available.)

I actually discussed a similar problem on IRC at least with Demosthenes, and we 
came up with a fairly neat solution: a "fixedrate" scoped directive, which lets 
you fix the cost of a certain commodity within a given span of your data file.  
Then, when you use -V (or -X), it displays the value of those commodities based 
on the Ledger data, and not based on the current market value.

This is a fairly easy change to make, I expect it will be available to you 
sometime next week.

Btw:

  100 mxn @ $0.075

This is slight different from saying:

  100 mxn {=$0.075}

In the former case, it means you are buying/selling mxn on the given day for 
$0.075, but future value reports will value the currency based on current 
market value.

In the latter case, it means you are dealing in a fixed-rate commodity whose 
value is always reported to you in those terms, independent from current market 
value.  This is what the fixedrate directive will apply within its range of 
effect:

fixedrate mxn $0.075

... 1000 mnx

end fixedrate

Then you needn't repeat the fixed-rate commodity pricing.

Would this solve your issue?

John

Reply via email to