I tried this out and have a few questions.

1.  Below, you used two colons for the meta tag.  It looks like it can work
with any valued tag as long as the value is a commodity

2.  It appears to add an unbalanced posting using the name of the tag as
the account.

Does that seem right? If so I will write it up.

On Wed, Nov 16, 2011 at 14:33, Craig Earls <[email protected]> wrote:

> Neat. I'll get that in the docs.  Thanks.
>
> On 2011-11-16, John Wiegley <[email protected]> wrote:
> >>>>>> Craig Earls <[email protected]>
> writes:
> >
> >> I am combing bug reports for interesting undocumented features and I ran
> >> across --inject.  I spent some time going through the code but can't
> >> really
> >> see what it is for.  Anyone have any clues?
> >
> > For my paychecks at a previous employer, I knew how much should be in
> them.
> > This wasn't always the amount that was there.  So I had a metadata field
> > like
> > this:
> >
> >     ; Expected:: $1,000.00
> >
> > Then I would "inject" these amounts into a query like this:
> >
> >   ledger reg --inject=Expected '^income:foo'
> >
> > That way, Income:FOO, which is a negative value, would be balanced by the
> > injected Expected values.  If the final results was positive, they owed
> me
> > that much money.
> >
> > This was intended a shorthand for something that I wasn't able to find an
> > easier way to do.
> >
> > John
> >
>
>
> --
> Craig, Corona De Tucson, AZ
> enderw88.wordpress.com
>



-- 
Craig, Corona De Tucson, AZ
enderw88.wordpress.com

Reply via email to