[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kmymoney] kmymoney/reports: CashFlow report: Reverse sign of income and expenses to keep consistenc
From: Alvaro Soliverez <asoliverez () kde ! org>
Date: 2012-04-30 22:44:06
Message-ID: 20120430224406.24AE5A60A9 () git ! kde ! org
[Download RAW message or body]
Git commit 435fdf0d4fb1d856fe0c475305581c0694b5a32f by Alvaro Soliverez.
Committed on 29/04/2012 at 04:04.
Pushed by asoliverez into branch 'master'.
CashFlow report: Reverse sign of income and expenses to keep consistency
with other reports and views
BUG:267990
REVIEW:104776
M +5 -0 kmymoney/reports/querytable.cpp
http://commits.kde.org/kmymoney/435fdf0d4fb1d856fe0c475305581c0694b5a32f
diff --git a/kmymoney/reports/querytable.cpp b/kmymoney/reports/querytable.cpp
index ef809e8..4108144 100644
--- a/kmymoney/reports/querytable.cpp
+++ b/kmymoney/reports/querytable.cpp
@@ -1267,6 +1267,11 @@ void QueryTable::constructSplitsTable(void)
xr = splitAcc.deepCurrencyPrice((*it_transaction).postDate()).reduce();
}
+ // reverse the sign of incomes and expenses to keep consistency in the way it \
is displayed in other reports + if (splitAcc.isIncomeExpense()) {
+ xr = -xr;
+ }
+
if (splitAcc.isInvest()) {
// use the institution of the parent for stock accounts
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic