Commit b73a474f authored by Łukasz Wojniłowicz's avatar Łukasz Wojniłowicz
Browse files

Remember transaction type identified by user

Transaction type identified by user isn't remembered, so in case of
consecutive transaction of the same type user is asked again about
identification. For KMM it is better to ask only once for unknown
transaction and use that answer to identify further transactions.

BUG: 362139
REVIEW: 127718
parent bcd0cd05
...@@ -1643,6 +1643,24 @@ int InvestProcessing::processActionType(QString& type) ...@@ -1643,6 +1643,24 @@ int InvestProcessing::processActionType(QString& type)
int ret = m_redefine->suspectType(i18n("<center>The transaction below has an unrecognised type or action.</center>" int ret = m_redefine->suspectType(i18n("<center>The transaction below has an unrecognised type or action.</center>"
"<center>Please select an appropriate entry, if available.</center>" "<center>Please select an appropriate entry, if available.</center>"
"<center>Otherwise, click Cancel to abort.</center>")); "<center>Otherwise, click Cancel to abort.</center>"));
// remember the selection for further transactions
if (!type.isEmpty() && !m_trInvestData.type.isEmpty() && type.compare(m_trInvestData.type,Qt::CaseInsensitive) != 0) {
if (m_trInvestData.type == "shrsin") {
m_shrsinList << type;
} else if (m_trInvestData.type == "reinvdiv") {
m_reinvdivList << type;
} else if (m_trInvestData.type == "divx") {
m_divXList << type;
} else if (m_trInvestData.type == "buy") {
m_buyList << type;
} else if (m_trInvestData.type == "sell") {
m_sellList << type;
} else if (m_trInvestData.type == "shrsout") {
m_removeList << type;
} else if (m_trInvestData.type == "intinc") {
m_intIncList << type;
}
}
return ret; return ret;
}// end of Type Col }// end of Type Col
......
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