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 (file:///Applications/Canary%20Mail.app/(null))
T: @slifty
W: http://www.slifty.com (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/b08e092c-fae0-4ee2-b02f-12f3d104467c%40Canary.

Reply via email to