Hello,

How can I get the transaction-level metadata for a given posting in
SQL-like syntax ?

I expected that metadata becoming before any posting was applied to all
postings in the transaction. But this is not the case.

For example with this transaction:

    1970-01-02 * "test01"
      meta: "valueTXN"
      Assets:C1  -10 EUR
       meta: "valuePostingC1"
      Assets:C2    6 EUR
       meta: "valuePostingC2"
      Assets:C3    4 EUR

I obtain

    beancount> SELECT date, flag, narration, position, META("meta") 
       date    f narrat positio   meta_cmeta  
    ---------- - ------ ------- --------------
    1970-01-02 * test01 -10 EUR valuePostingC1
    1970-01-02 * test01   6 EUR valuePostingC2
    1970-01-02 * test01   4 EUR               

I would have expected the third posting to have the default "valueTXN"
in it "meta" metadata but it is not the case.

François

-- 
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 beancount+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/20210327210139.tzgg4zt4cyellkux%40fjo-extia-HPdeb.example.avalenn.eu.

Reply via email to