From df8bfde04f43b36248966f3c12533f8e3d653334 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Mon, 4 Apr 2022 14:21:23 -1000 Subject: [PATCH] doc: --infer-market-prices is bad at guessing valuation commodity --- hledger/hledger.m4.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hledger/hledger.m4.md b/hledger/hledger.m4.md index 8c8ef7292..a749ee42c 100644 --- a/hledger/hledger.m4.md +++ b/hledger/hledger.m4.md @@ -1160,6 +1160,16 @@ and try adding `--debug` or `--debug=2` to troubleshoot. "[more correct](investments.html#a-more-correct-entry)" multicommodity transactions (no `@`, multiple commodities, balanced). +There is another limitation (bug) currently: when a valuation commodity is not specified, +prices inferred with `--infer-market-prices` do not help select a default valuation commodity, +as `P` prices would. +So conversion might not happen because no valuation commodity was detected (`--debug=2` will show this). +To be safe, specify the valuation commmodity, eg: + +- `-X EUR --infer-market-prices`, not `-V --infer-market-prices` +- `--value=then,EUR --infer-market-prices`, not `--value=then --infer-market-prices` + + ## Valuation commodity **When you specify a valuation commodity (`-X COMM` or `--value TYPE,COMM`):**\