[Kmymoney-devel] [Bug 308539] New: Dialog to match an imported transaction with a scheduled transaction does not give enough information.

Math duloup at gmail.com
Wed Oct 17 09:17:00 UTC 2012


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

            Bug ID: 308539
          Severity: wishlist
           Version: 4.6.3
          Priority: NOR
          Assignee: kmymoney-devel at kde.org
           Summary: Dialog to match an imported transaction with a
                    scheduled transaction does not give enough
                    information.
    Classification: Unclassified
                OS: Linux
          Reporter: duloup at gmail.com
          Hardware: Other
            Status: UNCONFIRMED
         Component: general
           Product: kmymoney4

I have many scheduled transactions with almost the same amount (ex. payee1 due
the 4th: 20€, payee2 due the 4th: 21€...) and when I import transactions from
my bank (OFX) it is always difficult to answer the 'Do you want KMyMoney to
enter this schedule now so that the transaction can be matched?' question based
only on the schedule name. I often end up with small mistakes.

In my opinion, the message should display the amount of the imported
transaction and its name to give the user all the info, it needs to answer this
question.

Thanks for this great program,

Reproducible: Always




Sample patch (I have not found how to attach it):

--- a/kmymoney/converter/mymoneystatementreader.cpp
+++ b/kmymoney/converter/mymoneystatementreader.cpp
@@ -1202,7 +1202,7 @@ void
MyMoneyStatementReader::processTransactionEntry(const MyMoneyStatement::Tra
           // to enter the schedule and match it agains the new transaction.
Otherwise, we
           // just leave the transaction as imported.
           MyMoneySchedule schedule(*(dynamic_cast<const
MyMoneySchedule*>(o)));
-          if (KMessageBox::questionYesNo(0,
QString("<qt>%1</qt>").arg(i18n("KMyMoney has found a scheduled transaction
named <b>%1</b> which matches an imported transaction. Do you want KMyMoney to
enter this schedule now so that the transaction can be matched? ",
schedule.name())), i18n("Schedule found")) == KMessageBox::Yes) {
+          if (KMessageBox::questionYesNo(0,
QString("<qt>%1</qt>").arg(i18n("KMyMoney has found a scheduled transaction
named <b>%1</b> which matches an imported transaction (name: <b>%2</b>, amount:
<b>%3</b>). Do you want KMyMoney to enter this schedule now so that the
transaction can be matched? ", schedule.name(), t_in.m_strPayee,
t_in.m_amount.toDouble()), i18n("Schedule found"))) == KMessageBox::Yes) {
 #ifdef Q_OS_WIN32                   //krazy:exclude=cpp
             // reset the input context on Windows or else we'll have a crash
here caused by an invalid focus widget in the input context
            
qApp->setInputContext(QInputContextFactory::create(qApp->inputContext()->identifierName(),
qApp));

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


More information about the KMyMoney-devel mailing list