This could be useful for me as well. I can see two different solutions:
1. Using links, as originally proposed by Martin. In fava it's
relatively easy (and if necessary, it can be made easier) to copy the
auto-generated "document" directive, then paste it in the source file
and add a link (or tag).
(@Martin: BUG? I noticed that when I do this, both the
auto-generated "document" and the (identical) manually added
"document" show up. The auto-generated "document" should probably be
omitted)
This would look like:
2016-04-07 document Income:MyEmployer
"/path/to/document/Income/MyEmployer/Payslip-20160407.pdf"
#payslip-20160407
2016-04-07 * "MyEmployer" "Payslip" #payslip-20160407
Income:MyEmployer:RegularPay 1,234.56 MONEY
Expenses:Taxes:2016:Federal 78.90 MONEY
... etc
2. Standardizing on a meta-data solution and auto-generating the
"document" directives for all posting accounts.
This would look like:
2016-04-07 * "MyEmployer" "Payslip"
document: "/path/to/document/Income/MyEmployer/Payslip-20160407.pdf"
Income:MyEmployer:RegularPay 1,234.56 MONEY
Expenses:Taxes:2016:Federal 78.90 MONEY
... etc
and automatically generate:
2016-04-07 document Income:MyEmployer:RegularPay
"/path/to/document/Income/MyEmployer/Payslip-20160407.pdf"
2016-04-07 document Expenses:Taxes:2016:Federal
"/path/to/document/Income/MyEmployer/Payslip-20160407.pdf"
... etc
Personally I would prefer option two. It's not only more concise, it
also makes it more explicit that the document is related to the
transaction. It does require standardizing on certain meta-data
(albeit via a plugin), something which I understand Martin is hesitant
about.
> --
> 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 post to this group, send email to
bean...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/beancount/CAFL5w3XaeJzaeXotbp_kwUb-WUL_mVtXcYwhXTLPP8iJJzNQww%40mail.gmail.com.
>
> For more options, visit
https://groups.google.com/d/optout.
--
Best regards,
Daniël Bos
Your government is reading your email. Slow them down with encryption.
My public key:
http://goo.gl/gms497 (4096 bit RSA, id EF2D5D91)
Fingerprint : D8D0 9FBE F075 F709 7B52 2F73 326C 2123 EF2D 5D91