Skip to content
Snippets Groups Projects
Commit f610c254 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 58d9b27f
No related branches found
No related tags found
No related merge requests found
......@@ -1638,6 +1638,24 @@ int InvestProcessing::processActionType(QString& type)
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>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;
}// end of Type Col
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment