On Wed, Jun 4, 2014 at 1:16 PM, Martin Blais <[email protected]> wrote:

> On Wed, Jun 4, 2014 at 4:23 AM, Jostein Berntsen <[email protected]>
> wrote:
>
>>
>> This sounds like a great feature. Can you give an example on how it works?
>>
>
> Sure.
> I attached an example input file (input.beancount).
> Run it like this:
>
>   bean-query input.beancount print
>
> This says: "parse input.beancount and produce the 'print' report".
> You should see output like print.beancount (also in attachment).
>
> I'm still improving it; for transactions with non-trivial balances, I want
> to spit out comments next to each posting that explicitly state which
> amounts are used in the balance calculation.  Also, price entries that are
> currently implicitly derived from positions with prices (e.g., @ ...) will
> be generated instead as explicit price entries being inserted in the flow
> of entries, by a stage that runs after parsing. I manually edited the
> output to give you an idea of what that will look like (attachment:
> print-future.beancount, diff it with print.beancount).
>

Both improvements are now implemented. Printing entries shows you the
amount that is used for balancing the entry, and the price directives that
used to be implicitly derived from postings with prices are now generated
explicitly in a first step, so they appear in the printed list.

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to