Hi, Le 2015-11-23 à 10:16, Alexis <[email protected]> a écrit :
> Hello François, >> I'm certain I'm doing something silly: >> https://gist.github.com/francois/eae3ae92a66fcbf5315c > > In your example you request all postings for the Asset:Bank account > which are virtual, yet there are none. > The virtual postings are the ones to the (cell) and (food) account. > > If you wanted reg Assets:Bank --display virtual > to work you would need a posting similar to: > (Assets:Bank) € 123,45 > >> What would be the exact syntax I should use to return a register of only >> the virtual accounts? > > % ledger -f a.txt reg —display virtual Then I haven’t explained myself fully: I want virtual accounts that were touched in the same transaction as a posting that touches Assets:Bank. If I were doing this in SQL: SELECT account, amount FROM postings WHERE transaction_id IN ( SELECT transaction_id FROM postings WHERE account = ‘Assets:Bank’) AND virtual If a transaction touches Assets:Bank, display *all* virtual postings. Is this possible using Ledger? Thanks! François -- --- 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.
