Commit c2900877 authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Add support of ReinvInt transaction to QIF file import

This change adds support for the QIF 'reinvint' investment transaction.

This also needs to be added to the KF5 branch.

BUG: 343256
REVIEW: 129639
FIXED-IN: 4.8.1
CCMAIL: mark@azu.ca
parent 3ce51d7b
......@@ -168,6 +168,9 @@ const QString MyMoneyQifReader::Private::accountTypeToQif(MyMoneyAccount::accoun
const QString MyMoneyQifReader::Private::typeToAccountName(const QString& type) const
{
if (type == "reinvint")
return i18nc("Category name", "Reinvested interest");
if (type == "reinvdiv")
return i18nc("Category name", "Reinvested dividend");
......@@ -1496,7 +1499,7 @@ void MyMoneyQifReader::processInvestmentTransactionEntry()
// Whether to create a cash split for the other side of the value
QString accountname; //= extractLine('L');
if (action == "reinvdiv" || action == "reinvlg" || action == "reinvsh") {
if (action == "reinvint" || action == "reinvdiv" || action == "reinvlg" || action == "reinvsh") {
d->st.m_listPrices += price;
tr.m_shares = quantity;
tr.m_eAction = (MyMoneyStatement::Transaction::eaReinvestDividend);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment