Nathan Grigg <nat...@nathangrigg.net> writes:

> On Jul 30, 2014, at 7:16 AM, Martin Blais <bl...@furius.ca> wrote:
>
>> This is perhaps a second question, but I'm confused as to the meaning of 
>> Ledger's filter expressions.
>> 
>> When you say:
>> ledger reg assets:receivable and @CBI
>> 
>> Does it mean:
>> Select all the POSTINGS with account Assets:Receivable 
>> AND
>> select all the TRANSACTIONS with payee "CBI"?
>
> As I understand it, you are always matching postings, but the payee is
> propagated to each posting. I think of it as "postings with given
> account and payee," but you may be more comfortable if you say
> "postings with a given account and in a transaction with given payee."
> (Although this might also be less correct because you can override the
> payee per posting in a transaction.)

In my case, I was hoping for something exactly equivalent in meaning to
the more verbose --limit statement. So what I understood was: "spit out
all postings that match assets:receivable, but then only show me those
with a payee that matches 'CBI'".

> Note that it doesn't say "give me postings matching given account AND
> give me postings matching given payee." Despite our use of "and"
> there, this would require an OR (i.e. union) operation.

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to