Issue #353: posting flag ignored / how to query posting flag? (blais/beancount)

13 views
Skip to first unread message

Martin Michlmayr

unread,
Dec 19, 2018, 7:56:47 AM12/19/18
to bean...@googlegroups.com
New issue 353: posting flag ignored / how to query posting flag?
https://bitbucket.org/blais/beancount/issues/353/posting-flag-ignored-how-to-query-posting

Martin Michlmayr:

The syntax manual says "You can also attach flags to the postings themselves, if you want to flag one of the transaction’s legs in particular"

However, when I query `f` on an account (posting) I don't see the one marked as `!`:

```
beancount> SELECT account, position, flag WHERE account ~ ':A'
account position f
-------- --------- -
Assets:A 11.00 EUR *
Assets:A 22.00 EUR *
Assets:A 33.00 EUR *
beancount>
```

Is there a different way to query the posting flag?

Test case:

```
2018-01-01 open Assets:A
2018-01-01 open Assets:B

2018-01-01 txn "Test 1"
aXa: "foo"
Assets:A 11.00 EUR
Assets:B

2018-01-01 txn "Test 2"
axa: "bar"
! Assets:A 22.00 EUR
Assets:B

2018-01-01 txn "Test 3"
axa: "bar"
* Assets:A 33.00 EUR
Assets:B
```


Reply all
Reply to author
Forward
0 new messages