* Martin Michlmayr <[email protected]> [2010-04-05 07:53]: > * John Wiegley <[email protected]> [2010-04-02 14:38]: > > Well, there is another, less hackish approach that Simon's post made me > > think of. Just add metadata to your "meta" transactions which close out > > the previous year: > > > > ; Type: Closing Transaction > > > > Then you can filter out such transactions by adding this to your report > > query: > > > > '!%type=Closing' > > Okay, that works reasonably well for what I'm trying to do.
However, there is at least one problem. When I exclude transacations, I cannot at the same time tell ledger to only show certain accounts. I've tried both ledger -f - bal Assets: '!%type=Dup' and ledger -f - bal '!%type=Dup' Assets: but in both cases it shows all accounts, not just my assets. My current workaround is: ledger -f - print '!%type=Dup' > tmp.ledger ledger -f tmp.ledger bal Assets: but there must be a better solution, right? -- Martin Michlmayr http://www.cyrius.com/
