security price entry question

Thomas Baumgart thb at net-bembel.de
Mon Sep 5 07:05:52 BST 2022


On Sonntag, 4. September 2022 20:24:57 CEST Jack via KMyMoney-devel wrote:

> On 9/4/22 09:44, Thomas Baumgart via KMyMoney-devel wrote:
> > Jack,
> >
> > On Montag, 29. August 2022 21:05:30 CEST Jack via KMyMoney-devel wrote:
> >> The edit security dialog has a dropdown for price entry: "Price per
> >> share," "Total for all shares," or "(default)".  Where is the default
> >> value set?  I've been hunting, but have not been able to find it.
> >> Even hunting in the code for "price per share" I only find two
> >> references (new account dialog and new investment wizard.)
> > If I understand this correct, you are looking for the code in
> > ActivityPrivate::priceMode() (this is for master). At the end
> > of that method it has the following section:
> >
> >          // if mode is still <Price> then use that
> >          if (mode == eDialogs::PriceMode::Price) {
> >              mode = eDialogs::PriceMode::PricePerShare;
> >          }
> >
> > where eDialogs::PriceMode::Price is the default.
> 
> Thanks.
> 
> As I read that, it says that PricePerShare IS the default.  If that's 
> the case, then I will open a wishlist to be able to change the default, 
> other than a local patch.  Am I just imagining that I was ever able to 
> change the default?

Maybe, because you can only change it on a per security level but not globally.
We can add a wish list item to select the default through settings.

-- 

Regards

Thomas Baumgart

-------------------------------------------------------------
Adam and Eve: the first people to not
read the Apple terms and conditions.
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20220905/bda1c661/attachment.sig>


More information about the KMyMoney-devel mailing list