One way I solved this problem was that after the entering the transaction I 
dragged and dropped the file on the Payee Entry this creates the correct 
linking and creates the account structure in the documents section 
correctly. 

On Saturday, May 6, 2023 at 1:43:44 AM UTC+5:30 Daniel Schultz wrote:

> I'm trying my hand at reorganizing my books so that I have separate 
> ledgers for each client, and finding that `document`s are not properly 
> linking
>
> I use fava with the plugin "fava.plugins.link_documents"
>
> My file structure is something like this:
>
> ```
> | - files
> | | - Assets
> | | | - MyClient
> | | | | - 2022-01-01-invoice-1.pdf
> | - ledgers
> | | - myClient.beancount
> | - ledger.beancount
> ```
>
> In my `ledger.beancount` I have the documents setting set:
>
> ```
> option "documents" "files"
> ```
>
> In `myClient.beancount` I have a transaction:
>
> ```
> 2022-01-01 * "My Client" "client invoice"
>   document: "files/Assets/MyClient/2022-01-01-invoice-1.pdf"
>   Assets:MyClient            1234.00 USD
>   Income:ClientServices -1234.00 USD
> ```
>
> This setup triggers an error in the `Errors` tab of fava:
>
> ```
> Document not found: 'files/Assets/MyClient/2022-01-01-invoice-1.pdf'
> ```
>
> If I update the `document:` path to be relative (`../files/...`) the error 
> goes away, but then clicking the file's link in fava's UX takes me to an 
> error page saying:
>
> ```
> Statement not found.
> ```
>
> If I move the entire transaction to the base `ledger.beancount` everything 
> works just fine (but I'd like to be able to organize my transactions)
>
> Anybody have ideas what might be going on and how I might be able to 
> resolve it?
>
> Best,
>   Dan
> --
> Daniel Schultz (he / him)
> P: (215) 400-1233
> T: @slifty
> W: http://www.slifty.com
>
>

-- 
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/602b9216-5a1d-4965-a99e-ac80a67f797en%40googlegroups.com.

Reply via email to