Lots of code has been changed. In general, this patch intends to replace global price precision with price precision per security. Thanks to this every security is displayed with proper price precision and not highest of all securities.
Things changed:
- removed partsPerUnit - no usage anywhere
- added pricePrecision - defaults to 4 but can be lowered as low as 2
- added edit button to Tools->Currencies - allows setting pricePrecision for currencies
- added pricePrecision to investment details dialog
- removed "show national currencies" from investment view - it wasn't available without any investment, so it wasn't versatile
- replaced tandem of precToDenom and convert to convertPrecision - it's more concise
- smallestAccountFraction, smallestCashFraction and pricePrecision are checked for validity before loading from .kmy file
- added yLabelsPrecison for graphs - user decides what precision he should get on y axis
- removed some warnings from mymoneyreport and mymoneysecurity during compilation