account assets:pension
account income:employer
D £1,000.00
commodity PEN 1,000.000
*******************************
2023/01/01 Opening balance
equity:opening-balances
assets:pension PEN 500
2023/01/31 Employer contribution
income:employer
assets:pension £100.00
2023/02/01 Automatic purchase
assets:pension
assets:pension PEN 110 @@ £100
2023/02/28 Employer contribution
income:employer
assets:pension £100.00
2023/03/01 Automatic purchase
assets:pension
assets:pension PEN 105 @@ £100
P 2023/03/04 PEN1 £0.98
So this is an example journal just tracking a pension (employer pays in with cash, pension automatically buys as many "units" of an investment fund PEN as it can)
What I'm not getting is how to get the current value to display correctly with `hledger bal -V`
here you've got an opening balance of PEN 500, plus 110 and 105 later, for a total of `PEN 715`
and the `P` statement at the bottom should value `PEN` at 98 pence
so the value in £ of the pension should be "£700.70"
$ hledger bal -f example.journal -V
£715.00 assets:pension
£-500.00 equity:opening-balances
£-200.00 income:employer
---------------------
£15.00
but instead I get £715?