Summary: | Let user specify the name of the brokerage account for an investment account | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | Jack <ostroffjh> |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | REPORTED --- | ||
Severity: | wishlist | CC: | agander93 |
Priority: | NOR | ||
Version: | git (master) | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Jack
2014-01-07 22:21:57 UTC
I suspect it's possible to do something like this, except it doesn't seem to work at the moment. This code appears in mymoneystatementreader.cpp - "// determine the brokerage account brokerageactid = m_account.value("kmm-brokerage-account").toUtf8(); if (brokerageactid.isEmpty()) { brokerageactid = file->accountByName(statementTransactionUnderImport.m_strBrokerageAccount).id();" but that key never gets a value set. There is another, similar "p.setAttribute("brokerageaccount", (*it_t).m_strBrokerageAccount);", which ends up in "void MyMoneyStatement::writeXMLFile(const MyMoneyStatement& _s, const QString& _filename)" so that could actually get into your investment account in the .kmy file. It then gets loaded at "t.m_strBrokerageAccount = c.attribute("brokerageaccount");" in bool MyMoneyStatement::read(const QDomElement& _e). It would be interesting to know if the string "brokerageaccount" does actually appear in your file, and what its value is. Also, if you could try git sometime to see if your transactions do get their asset-account. As far as I've found, the string m_strBrokerageAccount only gets set as above, and in the QIF and CSV importers. This is a very quick analysis, so there could be holes. Updating relevant version. I also point out that this change may or may not include the ability for one Checking account to be the designated brokerage account for more than one Investment account. (This is actually the case for my Vanguard accounts.) I am not certain what should happen with any action in a Brokerage account which refers to the related Investment account - some means of letting the user choose would be necessary, or possibly default to the first Investment account for which that relationship was established. |