How to effeciently use Documents in beancount.

923 views
Skip to first unread message

Vinit Khandagle

unread,
Dec 4, 2021, 4:48:40 AM12/4/21
to Beancount
Hello Everyone,

So I am trying to understand how to use document directive efficiently. They way I do is:
have an "option" directive pointing to the directories lets say "beancoount/Expenses". But the declaration of the "option" directive alone does not populate the document section in fava.

Then for each transaction I have to point it explicitly to the scanned copy in the sub directories in the expense folder for the document to show up in the documents section on Fava. This seems quite tedious to do for every transcation esp if have lots of accounts in Expenses with 4-5 levels deep.

What is the efficient way of using documents so that you don't spend too much time recording the entries and you still see the documents in the documents section in fava.

Martin Blais

unread,
Dec 4, 2021, 10:38:27 AM12/4/21
to Beancount
You may have to prefix your documents with a date in order for them to be found.

    OptGroup("""                                                                                                        
      A list of directory roots, relative to the CWD, which should be searched                                          
      for document files. For the document files to be automatically found they                                        
      must have the following filename format: YYYY-MM-DD.(.*)                                                          
    """, [Opt("documents", [], "/path/to/your/documents/archive")]),

The source code is located here:





--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/82da3624-626b-42a0-8e8f-7971c3f1942bn%40googlegroups.com.

Vinit Khandagle

unread,
Dec 5, 2021, 8:25:37 AM12/5/21
to Beancount
Yes, that exactly what I do, I have subdirectories with files in it with the date as the prefix.  Yet, Unless I give the explicit path to the document I don't see the files in the document setion.

redst...@gmail.com

unread,
Dec 10, 2021, 4:47:42 PM12/10/21
to Beancount
I've always used this, and it's always worked fine for me, still does with a single global options directive. Shows up both in the Documents, and the Journal views. Are your subdirectories named after your account hierarchy?

If you still can't get it to work, perhaps post a minimal example here?
Reply all
Reply to author
Forward
0 new messages