hledger icon indicating copy to clipboard operation
hledger copied to clipboard

conversion to a default valuation commodity may not happen with --infer-market-prices

Open simonmichael opened this issue 2 years ago • 0 comments

I think it's a bug: 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

simonmichael avatar Apr 05 '22 00:04 simonmichael