Yes, it does solve it.
I just tried the {} with -V and it works as I need it for expenses
reporting. The fixedrate directive syntactic-sugar is sweet because it
allows me to avoid all that duplicated typing (the source of my
pain).
I guess I need to be careful to place the regions around the correct
dates but this is just fine with me because I keep my ledger in
chronological order anyway. I also keep the P prices in the same file,
so this solution plays well with that too.
Thank you very much for considering this request and being responsive.
This is just the kind of stuff one can't get out of commercial
solutions, where GUI gizmos are more important than a good/correct
model of the problem.
Javier
On Nov 24, 10:03 pm, John Wiegley <[email protected]> wrote:
> 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