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

allan <agande...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |agande...@gmail.com

--- Comment #1 from allan <agande...@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.
_______________________________________________
KMyMoney-devel mailing list
KMyMoney-devel@kde.org
https://mail.kde.org/mailman/listinfo/kmymoney-devel

Reply via email to