Because beancount doesn't (yet?) support tags attached to postings
<https://bitbucket.org/blais/beancount/issues/144>—only transactions—I've
been trying to figure out how to use metadata to accomplish the same thing.
I see that querying based upon metadata
<https://bitbucket.org/blais/beancount/issues/58/add-support-for-querying-metadata-in-bean>
is supported, but I don't see anything the in query language specification
<https://docs.google.com/document/d/1s0GOZMcrKKCLlP29MD7kHO4L88evrwWdIO0p4EwRBE0>
regarding how to query based upon metadata. Further, neither bean-web nor
fava really have first-class support for metadata other than to display it.
As an example, supposing I have the following, how would I query to get all
transactions and/or postings related to invoice 200? How could I query to
find all #payments related to invoice 200?
2000-01-01 open Assets:Checking USD
2000-01-01 open Assets:Receivables USD
2000-01-01 open Expenses:Billable:Client1 USD
2000-01-01 open Expenses:Billable:Client2 USD
2000-01-01 open Expenses:Other USD
2016-01-01 * "Amazon.com" "purchase on behalf of self, client 1, and client
2"
Assets:Checking -6.00 USD
Expenses:Billable:Client1 1.00 USD
invoice: "100"
Expenses:Billable:Client2 2.00 USD
invoice: "200"
Expenses:Other 3.00 USD
2016-01-02 * "generate invoice for client 1"
invoice: "100"
Expenses:Billable:Client1 -1.00 USD
Assets:Receivables
2016-01-02 * "generate invoice for client 2"
invoice: "200"
Expenses:Billable:Client1 -2.00 USD
Assets:Receivables
2016-01-03 * "payment received from client 1" #payment
invoice: "100"
Assets:Receivables -1.00 USD
Assets:Checking
2016-01-03 * "payment received from client 2" #payment
invoice: "200"
Assets:Receivables -2.00 USD
Assets:Checking
--
You received this message because you are subscribed to the Google Groups
"Beancount" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beancount/16380e36-e03e-4d0c-a09e-206382abd59f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.