The conversions transactions is a special transaction that is inserted when you take a subset of transactions to summarize (e.g. income statement or balance sheet) in order to account for the differences incurred due to currency conversions over a period of time. It just makes sure that summing up all the transactions results in precisely nothing (an empty inventory). https://bitbucket.org/blais/beancount/src/3bea56bede0cfc016e81406a7edc1689d941917b/beancount/ops/summarize.py#lines-459
It may be documented here: https://docs.google.com/document/d/100tGcA4blh6KSXPRGCZpUlyxaRUwFHEvnz_k9DyZFn4/ <https://docs.google.com/document/d/100tGcA4blh6KSXPRGCZpUlyxaRUwFHEvnz_k9DyZFn4/edit> or here (I don't remember): https://docs.google.com/document/d/1_-T_BvDtUjj9M7liZMNSkrL8pgC60TGMBlYCiV1e4ZM/ <https://docs.google.com/document/d/1_-T_BvDtUjj9M7liZMNSkrL8pgC60TGMBlYCiV1e4ZM/edit> A better way to handle differences in currency conversions involves automatically adding currency conversion correction postings --- look on the mailing list for "currency trading accounts" and the external web page referenced, I even implemented a prototype for it --- which would alleviate the need for this special correcting transaction (any subset of postings always sums up to nothing without any special treatment), but insert a bunch of seemingly strange postings on every transaction with a currency conversion. Anyhow, it's a fairly non-obvious topic that isn't super important. Perhaps the simplest interpretation of that special transaction is that it just corrects for all the small profits & losses due to currency conversions over a period of time. On Sat, Oct 26, 2019 at 2:01 AM <[email protected]> wrote: > I see the figure 1 when I open > http://localhost:5000/beancount/balance_sheet/?conversion=CNY&time=2017. > [image: Capture] > <https://user-images.githubusercontent.com/2220369/65390487-1479c880-dd92-11e9-8067-18c99fe136a8.PNG> > > Where can I find docs about Equity:Conversion:Previous? I expect it to be > 'conversion happened previously'. I guess the Equity:Opening-Balances is > implemented as 'conversion happened previously'. > > Thanks for any help. Attached is the bean file if it's helpful. > > option "operating_currency" "CNY" > plugin "beancount.plugins.implicit_prices" > > > 2015-01-01 open Assets:Stock > 2015-01-01 open Assets:Cash > 2015-01-01 open Income:Salary > > > 2015-04-01 * "income" > Assets:Cash +10000.00 CNY > Income:Salary -12000.00 HKD @@ 10000.00 CNY > Assets:Cash +2000.00 HKD > Income:Salary -2000.00 HKD > > 2016-04-01 * "income" > Assets:Cash +11000.00 CNY > Income:Salary -12000.00 HKD @@ 11000.00 CNY > Assets:Cash +2000.00 HKD > Income:Salary -2000.00 HKD > > 2017-04-01 * "income" > Assets:Cash +12000.00 CNY > Income:Salary -12000.00 HKD @@ 12000.00 CNY > Assets:Cash +2000.00 HKD > Income:Salary -2000.00 HKD > > > 2015-05-01 * "buy" > Assets:Cash > Assets:Stock +100.00 PINGAN {50.00 CNY} > > 2016-05-01 * "buy" > Assets:Cash > Assets:Stock +100.00 PINGAN {60.00 CNY} > > 2017-05-01 * "buy" > Assets:Cash > Assets:Stock +100.00 PINGAN {70.00 CNY} > > > 2018-05-01 price PINGAN 100 CNY > > 2018-05-01 price HKD 1.2 CNY > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/beancount/6fc1d5e1-6b74-4da1-8d56-7bab72b71afa%40googlegroups.com > <https://groups.google.com/d/msgid/beancount/6fc1d5e1-6b74-4da1-8d56-7bab72b71afa%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/CAK21%2BhN7my5c1TJqD%2BNekUCwa4wx%2BU1UJ%2BBBDCrok5MX8DSvYA%40mail.gmail.com.
