Closed blais closed 2 years ago
For postings flags, the column name is called posting_flag
. If you want the posting flag if defined otherwise the transaction flag, you can use something like
SELECT account, position, coalesce(posting_flag, flag) WHERE account ~ ':A'
Original report by Martin Michlmayr (Bitbucket: tbm13, GitHub: tbm).
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!
:Is there a different way to query the posting flag?
Test case: