No position matches - how to fix it?

48 views
Skip to first unread message

Máté Farkas

unread,
Jun 22, 2020, 2:14:07 AM6/22/20
to Beancount
Hi,

I tried to import to beancount my 11k transactions of 15 years.

It works pretty well, except with the account with different currency. (I was able to eliminate the No Position Matches errors using "NONE" booking method, but fava has a bug, so I cannot hide the account which was closed years ago.)

Here is a minimalistic example, how can I make it working (without setting booking method to "NONE"):

option "title" "Currency account test"
option "operating_currency" "HUF"

2020-01-01 open Income:Test
2020-01-01 open Expenses:Test
2020-01-01 open Assets:Test EUR "AVERAGE"

2020-01-02 price EUR 100. HUF
2020-01-02 *
  Assets:Test       1. EUR {{100. HUF}}
  Income:Test    -100. HUF

2020-01-03 price EUR 200. HUF
2020-01-03 *
  Assets:Test       1. EUR {{200. HUF}}
  Income:Test    -200. HUF

2020-01-04 price EUR 150. HUF
2020-01-04 *
  Assets:Test      -2. EUR {{300. HUF}}
  Expenses:Test   300. HUF

Versions:
  • fava, version 1.15
  • Beancount 2.3.0
Thank you in advance,
Máté.

redst...@gmail.com

unread,
Jun 26, 2020, 4:29:31 AM6/26/20
to Beancount
In brief: ' 1. EUR {{100. HUF}} ' is incorrect syntax for what you're trying to do. Read the documentation (it's awesome) and it should be obvious.
Reply all
Reply to author
Forward
0 new messages