[Kmymoney-devel] [kmymoney4] [Bug 329701] Let user specify the name of the brokerage account for an investment account

allan agander93 at gmail.com
Wed Jan 8 12:32:47 UTC 2014


https://bugs.kde.org/show_bug.cgi?id=329701

allan <agander93 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |agander93 at gmail.com

--- Comment #1 from allan <agander93 at gmail.com> ---
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.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the KMyMoney-devel mailing list