Closed doriath closed 1 year ago
Yes, you're right. Currently, it is a bug (or incorrect design). https://beancount.github.io/docs/beancount_language_syntax.html#operating-currencies clearly states (emphasis is mine):
For this reason, you are able to declare the most common currencies you use in an option:
option "operating_currency" "USD"
You may declare more than one.
We should store the options as Vec<(&str, &str)>
(or equivalent) and adapt the api.
In my ledger I use following:
I believe this is supported by fava, to show the sums in those two currencies. In the current parser, HashMap is used with one possible value, which I believe means will drop one of the values. Should
options
hashmap be changed to useVec<&str>
as a value?