account opening date question

Thomas Baumgart thb at net-bembel.de
Mon May 29 09:18:25 BST 2023


On Sonntag, 28. Mai 2023 22:47:33 CEST Jack Ostroff via KMyMoney-devel wrote:

> When I do a consistency check, the results include
>       * The security 'UNITEDHEALTH GROUP INC' has no price set for the  
> opening date '2023-04-03'.
> 
> However, the that security is held in a single investment account, in  
> the security account
>       <ACCOUNT id="A001156" parentaccount="A000262" lastreconciled=""  
> lastmodified="2023-05-08" institution=""
> 	opened="2023-04-03" number="" type="15" name="UNITEDHEALTH  
> GROUP INC" description="" currency="E000541"/>
> 
> and it is used in a single transaction
>       <TRANSACTION id="T000000000000028277" postdate="2023-04-26" memo=
> 	"Purchase: UNITEDHEALTH GROUP INC PER ADVISORY AGREEMENT.  
> PRICE   488.325500" entrydate="2023-05-07" commodity="USD">
>        <SPLITS>
>          <SPLIT id="S0001" payee="" reconciledate="2023-04-28"  
> action="" reconcileflag="2" value="-244163/100" shares="-244163/100"
> 		price="1/1" memo="Purchase: UNITEDHEALTH GROUP INC PER  
> ADVISORY AGREEMENT. PRICE   488.325500" account="A000263" number=""  
> bankid=""/>
>          <SPLIT id="S0002" payee="" reconciledate="" action="Buy"  
> reconcileflag="2" value="244163/100" shares="5/1"
> 		price="244163/500" memo="Purchase: UNITEDHEALTH GROUP  
> INC PER ADVISORY AGREEMENT. PRICE   488.325500" account="A001156"  
> number=""
> 		bankid="ID 20230424TB151147020156039"/>
> 
> The transaction is dated April 26 and was imported May 7.  How did the  
> opening date get to April 3?   Is there any way for me to change that  
> opening date short of editing the data file?  I know I can just add a  
> price on or before April 3, but I'd rather not need to have price  
> before I ever owned the stock?
> 
> Any thoughts or pointers?

I changed the way the consistency check validates available price information.
The check is now based on the date of first use instead of the account opening
date. I hope that solves the problem.

-- 

Regards

Thomas Baumgart

-------------------------------------------------------------
If a train station is where a train stops,
then what stops at a workstation?
-------------------------------------------------------------
-------------- 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/20230529/d76e95cb/attachment.sig>


More information about the KMyMoney-devel mailing list