On Sat, Nov 23, 2024 at 8:20 AM Chary Ev2geny <chary...@gmail.com> wrote:

> Dear all,
>
> i never really had a use for the *document *directive, but as I now
> logged an issue  with it
> <https://github.com/beancount/beancount/issues/874>I am kind of trying to
> dig in it, hence questions.
>
> The documentation says:
>
> A Document directive can be used to attach an external file to the journal
> of an account:
>
> 2013-11-03 document Liabilities:CreditCard "/home/joe/stmts/apr-2014.pdf"
>
> The filename gets rendered as a browser link in the journals of the web
> interface for the corresponding account and you should be able to click on
> it to view the contents of the file itself. This is useful to integrate
> account statements and other downloads into the flow of accounts, so that
> they’re easily accessible from a few clicks. Scripts could also be written
> to obtain this list of documents from an account name and do something with
> them.
>
> *Q1*: for the beancount v3, is there any application which actually uses
> this now?
>

I'm not aware of one, but I suspect Fava probably does something.
This was used somewhere in bean-web a long time ago.


*Q2:* why does this directive need a date, what is the logic of assigning a
> date information?
>

Documents invariably are issued on some particular date.



> *Q3:* for me a document, assigned to an account sounds more like a meta
> information. So, why invert a special directive? Why this design decision
> was done? Why not just write something like this:
>
> 2020-01-01 open Assets:Bank:Checking
>   document: "/path/to/file.txt"
>

Documents are issued at all sorts of later dates, i.e., statements; those
aren't transactions so what would you associated it with? A Note directive?
I suppose you could. I felt that documents deserved to have a place in the
schema, but I guess it's debatable.




>
> --
> 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 visit
> https://groups.google.com/d/msgid/beancount/d76fe5ac-708e-46b5-ab6b-e678a8c1b132n%40googlegroups.com
> <https://groups.google.com/d/msgid/beancount/d76fe5ac-708e-46b5-ab6b-e678a8c1b132n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 visit 
https://groups.google.com/d/msgid/beancount/CAK21%2BhN-7gEB2mVA4timbggpcxAxGdvtNWTr0eB9hQRkKVd_ag%40mail.gmail.com.

Reply via email to