Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/reports/listtable.cpp
Show First 20 Lines • Show All 587 Lines • ▼ Show 20 Line(s) | 558 | if (m_config.isConvertCurrency()) { | |||
---|---|---|---|---|---|
588 | // | 588 | // | ||
589 | // Grand total | 589 | // Grand total | ||
590 | // | 590 | // | ||
591 | 591 | | |||
592 | QString grandtotal_html = grandtotal.formatMoney(fraction); | 592 | QString grandtotal_html = grandtotal.formatMoney(fraction); | ||
593 | QString grandtotal_csv = grandtotal.formatMoney(fraction, false); | 593 | QString grandtotal_csv = grandtotal.formatMoney(fraction, false); | ||
594 | 594 | | |||
595 | //If we order by Tags don't show the Grand total as we can have multiple tags per transaction | 595 | //If we order by Tags don't show the Grand total as we can have multiple tags per transaction | ||
596 | if (m_config.rowType() != MyMoneyReport::eTag) { | 596 | if (m_config.rowType() != MyMoneyReport::Row::Tag) { | ||
597 | result += "<tr class=\"sectionfooter\">" | 597 | result += "<tr class=\"sectionfooter\">" | ||
598 | "<td class=\"left0\" " | 598 | "<td class=\"left0\" " | ||
599 | "colspan=\"" + QString::number(columns.count() - 1 - postcolumns.count()) + "\">" + | 599 | "colspan=\"" + QString::number(columns.count() - 1 - postcolumns.count()) + "\">" + | ||
600 | i18n("Grand Total") + "</td>" | 600 | i18n("Grand Total") + "</td>" | ||
601 | "<td>" + grandtotal_html + "</td></tr>\n"; | 601 | "<td>" + grandtotal_html + "</td></tr>\n"; | ||
602 | csv += "\"" + i18n("Grand Total") + "\",\"" + grandtotal_csv + "\"\n"; | 602 | csv += "\"" + i18n("Grand Total") + "\",\"" + grandtotal_csv + "\"\n"; | ||
603 | } | 603 | } | ||
604 | } | 604 | } | ||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |