fava icon indicating copy to clipboard operation
fava copied to clipboard

Missing entry_hash in link to document

Open mdlaat opened this issue 5 months ago • 0 comments

According to the beancount documentation, is it ok to attach a document key to a posting of a transaction:

2024-01-09 * "Bank/9"
  Uitgaven:Verteer  3.75 EUR
    document: "/bean/docs/2024/Uitgaven/Verteer/2024-01-09_120.pdf"
  Vermogen:Prive-mutaties  4847.51 EUR
  Uitgaven:Verteer  17.00 EUR
  Activa:Liquide:ING -4868.26 EUR

However, I experience an issue with fava (using in docker, Beancount version 2.3.6 and Fava 1.27.3).

Given the example above, If I open the journal view, expand this transaction and mouse over to the document link, that link is missing the entry_hash=.... part of the url, resulting in an error when clicked.

If I move the document key to the second line of the transaction:

2024-01-09 * "Bank/9"
  document: "/bean/docs/2024/Uitgaven/Verteer/2024-01-09_120.pdf"
  Uitgaven:Verteer  3.75 EUR  
  Vermogen:Prive-mutaties  4847.51 EUR
  Uitgaven:Verteer  17.00 EUR
  Activa:Liquide:ING -4868.26 EUR

open the journal view, expand this transaction and mouse over to the document link, that link has the entry_hash=... part included in the url and clicking the link does indeed show me the document.

This seems like a bug to me. Is it me, or can anyone confirm?

mdlaat avatar Sep 23 '24 12:09 mdlaat