Hi John, John Lee <[email protected]> writes:
I love ledger and I'm really grateful and happy I found it :-) I've been using virtual transactions for a few months but I'm not yet happy with the way I'm doing it. I have transactions like this: 2017-10-01 * Opening Balance Assets:CurrentAccount $1000 Equity:OpeningBalances 2017-10-02 * Savings [Funds:Saving] $100 [Assets:CurrentAccount] $-100
Is there a reason you need to use a virtual transaction for this? Why not just use a subaccount, like
2017-10-01 * Opening Balance Assets:CurrentAccount:Savings $100 Assets:CurrentAccount $900 Equity:OpeningBalances Then, the balance of Assets:CurrentAccount reflects what you are currently tracking as the "real" balance, while the balance of Assets:CurrentAccount:Savings reflects what you are currently tracking as the "virtual" balance. You don't have to mess with virtual transactions (or the flags for dealing with them) at all.
(I do use virtual transactions for budgeting, but in general I find that subaccounts like this are better for most things that virtual transactions can do.)
My problem is that I'd like to record the real balance of Assets:CurrentAccount ($1000) somewhere (aside from the comment), rather than only the virtual balance ($900).
If you take the subaccount approach, I think you should be able to just do
2017-10-03 * Balance Assets:CurrentAccount = $1000 Equity:Adjustments Hope that helps! -- 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.
signature.asc
Description: PGP signature
