diff --git a/kmymoney/dialogs/settings/ksettingshome.ui b/kmymoney/dialogs/settings/ksettingshome.ui --- a/kmymoney/dialogs/settings/ksettingshome.ui +++ b/kmymoney/dialogs/settings/ksettingshome.ui @@ -225,6 +225,13 @@ + + + + Show date of last reconciliation + + + diff --git a/kmymoney/kmymoney.kcfg b/kmymoney/kmymoney.kcfg --- a/kmymoney/kmymoney.kcfg +++ b/kmymoney/kmymoney.kcfg @@ -188,6 +188,10 @@ false + + + false + diff --git a/kmymoney/views/khomeview_p.h b/kmymoney/views/khomeview_p.h --- a/kmymoney/views/khomeview_p.h +++ b/kmymoney/views/khomeview_p.h @@ -253,6 +253,11 @@ countStr = '-'; tmp += QString("%1").arg(countStr); } + + if (KMyMoneyGlobalSettings::showDateOfLastReconciliation()) { + QString lastReconciliationDate = acc.lastReconciliationDate().toString(Qt::SystemLocaleShortDate); + tmp += QString("%1").arg(lastReconciliationDate); + } //show account balance tmp += QString("%1").arg(showColoredAmount(amount, value.isNegative())); @@ -950,6 +955,9 @@ if (KMyMoneyGlobalSettings::showCountOfNotReconciledTransactions()) m_html += QString("!R"); + if (KMyMoneyGlobalSettings::showDateOfLastReconciliation()) + m_html += QString("%1").arg(i18n("Last Reconciliation")); + m_html += ""; m_html += i18n("Current Balance"); m_html += ""; @@ -976,6 +984,7 @@ if (KMyMoneyGlobalSettings::showCountOfUnmarkedTransactions()) m_html += ""; if (KMyMoneyGlobalSettings::showCountOfClearedTransactions()) m_html += ""; if (KMyMoneyGlobalSettings::showCountOfNotReconciledTransactions()) m_html += ""; + if (KMyMoneyGlobalSettings::showDateOfLastReconciliation()) m_html += ""; m_html += QString("%1").arg(showColoredAmount(amount, m_total.isNegative())); m_html += ""; } @@ -1278,6 +1287,9 @@ if (KMyMoneyGlobalSettings::showCountOfNotReconciledTransactions()) m_html += "!R"; + if (KMyMoneyGlobalSettings::showDateOfLastReconciliation()) + m_html += "" + i18n("Last Reconciliation") + ""; + m_html += ""; m_html += i18n("Current Balance"); m_html += ""; @@ -1304,6 +1316,9 @@ if (KMyMoneyGlobalSettings::showCountOfNotReconciledTransactions()) m_html += "!R"; + if (KMyMoneyGlobalSettings::showDateOfLastReconciliation()) + m_html += "" + i18n("Last Reconciliation") + ""; + m_html += ""; m_html += i18n("Current Balance"); m_html += ""; @@ -1313,6 +1328,7 @@ if (KMyMoneyGlobalSettings::showCountOfUnmarkedTransactions()) placeHolder_Counts = ""; if (KMyMoneyGlobalSettings::showCountOfClearedTransactions()) placeHolder_Counts += ""; if (KMyMoneyGlobalSettings::showCountOfNotReconciledTransactions()) placeHolder_Counts += ""; + if (KMyMoneyGlobalSettings::showDateOfLastReconciliation()) placeHolder_Counts += ""; //get asset and liability accounts QList::const_iterator asset_it = assets.constBegin();