In article <[email protected]>,
 Qwertyu <[email protected]> wrote:

> On Tuesday, July 10, 2012 6:51:44 PM UTC+2, John Wiegley wrote:
> >
> > >>>>> Qwertyu writes: 
> >
> > > how can I remove '<Adjustment>' lines from a monthly report.   
> > > It makes parsing the report quite difficult, since there are two entries 
> > for 
> > > the same date. 
> >
> > They are required for the running total to make sense.  But they only 
> > appear 
> > if you are converting currencies. 
> >
> > Have you also tried the -n flag? 
> >
> 
> I use the -n flag already to suppress the sub-accounts to only get a total. 
>  Maybe a flag like '--silent-adjustment' is needed?
> 
> BTW, I don't really understand how the adjustments work.  See the attached 
> (minimal example) files.  The difference between the
> files is only the price.  Sometimes adjustments are shown and sometime not. 
>  Why?  

Sorry to revive this thread from several days ago, but I'd also like to 
know the answer of the above question. More specifically, why is there 
an adjustment in his first example (the one with 0.011 conversion rate), 
but not in the second (the one with 0.051 conversion rate)? What is the 
rule by which Ledger decides that an adjustment is needed?

> <Adjustments> are used to show that the price of a commodity changed between
> two postings, affecting the running total.  It's intended (along with
> <Rounding> posts) to ensure that the total from a balance report exactly
> matches the total from the same register report.

This does not seem to happen in the OP's last example, where

  ledger bal ^assets -V

gives

  -0.01$ Assets

but

  ledger reg ^assets -V

does not show anything. Am I missing something?

In my ledger file, I get <Adjustment> lines when I compute monthly 
averages like this:

  ledger -p 'this year' -MA --collapse reg ^expenses -X CAD

I can get rid of them with -O. In this case, I do not find them 
meaningful, but maybe I just cannot interpret them... Is it ok to add -O?

Thanks in advance,
Life

Reply via email to