SUMMARY This bug is identical to that reported in bug report 403249. It appears to be a regression. STEPS TO REPRODUCE 1. Create a new security of type Stock having price precision of 4 and remainder of Round. 2. In the ledger, enter a Buy transaction of 70 shares and Price/share of 35.6550 OBSERVED RESULT The Price/share changes to 35.65. The Total amount shows 2495.50 EXPECTED RESULT The Price/share should show 35.655. The Total amount should show 2495.85. SOFTWARE/OS VERSIONS Windows 10 Ubuntu Linux (I reproduced it on both platforms) ADDITIONAL INFORMATION KMyMoney version 5.1.92-bfd5a63 (from the Help/About KMyMoney menu) KMyMoney build master 4183
Created attachment 179732 [details] test file With the appended test file the reported behavior cannot be reproduced. It includes two investment accounts: 'A' with a 4 digit price precision and 'B' with a 2 digit price precision. In the ledger for account 'Investment' the price is displayed as expected: 'A' with 4 digits and 'B' with 2 digits.
Created attachment 179733 [details] Screenshot showing ledger for account 'Investment'
Your test file works correctly as you stated. I deleted the Buy transaction and the security and recreated them and this time it behaved correctly as well. I suppose this case can be closed. If it happens to me again I'll try to determine the steps that reproduce the behaviour.
Closing per Comment #3.