Hi John,

John Lee <[email protected]> writes:

However, I guess I can't do this: 2017-10-01 * Opening Balance Assets:CurrentAccount $1000 Equity:OpeningBalances 2017-10-02 * Savings Assets:CurrentAccount:Savings $100 Assets:CurrentAccount Because then if I go on to do this: 2017-10-03 * Adjustment Assets:CurrentAccount = $1005 Equity:Adjustments then this balance command tells me I have made $100 out of thin air ($1105 total): ledger b Assets:CurrentAccount That's because in that final txn I'm actually setting not the summed-up total of everything in *or under* Assets:CurrentAccount, as appears in the balance output, but the amount that lives in that *exact* location (which you might write in a balance command as '^Assets:CurrentAccount$'). I'm not sure there's any way to fix that final txn to say that it's actually the *total* "descendant-or-self" value I want to set equal to $1005?

Hmm, I see. I'm surprised by this, but I don't use balance assignments myself. If you need balance assignments like this, I guess subaccounts are not the way to go. (Unless this is a bug?) Personally, I want every transaction recorded -- independently, so I can check my record against my bank's. Thus, I avoid what you're trying to do here: automatic adjustments via balance assertions. But I realize that "don't do that" is not very helpful advice. :)

Can anyone else lend some insights?
--
Best,
Richard

--

--- 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