Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/plugins/views/reports/core/querytable.cpp
Show First 20 Lines • Show All 812 Lines • ▼ Show 20 Line(s) | 812 | else { | |||
---|---|---|---|---|---|
813 | 813 | | |||
814 | //this is when the splits are going to be shown as children of the main split | 814 | //this is when the splits are going to be shown as children of the main split | ||
815 | if ((splits.count() > 2) && use_summary) { | 815 | if ((splits.count() > 2) && use_summary) { | ||
816 | qA[ctValue].clear(); | 816 | qA[ctValue].clear(); | ||
817 | 817 | | |||
818 | //convert to lowest fraction | 818 | //convert to lowest fraction | ||
819 | qA[ctSplit] = (-(*it_split).shares() * xr).convert(fraction).toString(); | 819 | qA[ctSplit] = (-(*it_split).shares() * xr).convert(fraction).toString(); | ||
820 | qA[ctRank] = QLatin1Char('2'); | 820 | qA[ctRank] = QLatin1Char('2'); | ||
821 | qA[ctTag] = ""; | ||||
822 | QString delimiter = ""; | ||||
823 | for (int i = 0; i < tagIdList.size(); i++) { | ||||
824 | qA[ctTag] += delimiter + file->tag(tagIdList[i]).name().simplified(); | ||||
825 | delimiter = ", "; | ||||
826 | } | ||||
821 | } else { | 827 | } else { | ||
822 | //this applies when the transaction has only 2 splits, or each split is going to be | 828 | //this applies when the transaction has only 2 splits, or each split is going to be | ||
823 | //shown separately, eg. transactions by category | 829 | //shown separately, eg. transactions by category | ||
824 | switch (m_config.rowType()) { | 830 | switch (m_config.rowType()) { | ||
825 | case eMyMoney::Report::RowType::Category: | 831 | case eMyMoney::Report::RowType::Category: | ||
826 | case eMyMoney::Report::RowType::TopCategory: | 832 | case eMyMoney::Report::RowType::TopCategory: | ||
827 | case eMyMoney::Report::RowType::Tag: | 833 | case eMyMoney::Report::RowType::Tag: | ||
828 | case eMyMoney::Report::RowType::Payee: | 834 | case eMyMoney::Report::RowType::Payee: | ||
▲ Show 20 Lines • Show All 1160 Lines • Show Last 20 Lines |