On Thu, Nov 25, 2010 at 11:05:18PM -0500, John Wiegley wrote:
> On Nov 25, 2010, at 4:37 PM, Gabriel Kerneis wrote:
>
> > On a related note, would it be possible to lift this restriction of a
> > single null amount per entry (possibly with a command-line option)?
>
> If there were multiple null postings, how would I auto-balance the
> transaction?
IIRC (but I might be wrong), I tried that:
2010/01/01 * Check or set balance
Assets = $ 1,000
Equity:Balance
What I would expect is:
- ledger computes the amount x for the first line, so that
current_assets + x = $ 1,000
- and then sets equity to -x.
And did not work when x = 0.
It was some time ago, so maybe this works now. Or is there some reason
for it not to work that I cannot figure out (my algorithm looks
straightforward but it might not generalize to more complex cases)?
Best,
--
Gabriel