trevorld / r-ledger

Imports data from plain text accounting files
Other
38 stars 2 forks source link

Import `beancount` metadata #20

Open vikasrawal opened 4 months ago

vikasrawal commented 4 months ago

Is there support for reading metadata? I can't see the metadata in the beancount file I am reading with ledger. Unless I am missing something.

trevorld commented 4 months ago
vikasrawal commented 4 months ago

The beancount query can be modified to read the metadata. For example, the following query, reads "document" metadata. Since each user is expected to have have custom metadata tags, it would be desirable to get the user to specify which metadata tags the user wants to import.

paste("select date, flag as mark, account, payee,", "narration as description,", "number as amount, currency as commodity,", "tags,","id,","any_meta('document')")->query

trevorld commented 4 months ago