Commit 83dd7a0d authored by Thomas Baumgart's avatar Thomas Baumgart
Browse files

Show value of opening balance for investments

The current implementation did only show the number of shares which
needs to be multiplied by the price to gain the value.

BUG: 398982
FIXED-IN: 5.0.8
parent 357c10a1
...@@ -697,6 +697,11 @@ void PivotTable::calculateOpeningBalances() ...@@ -697,6 +697,11 @@ void PivotTable::calculateOpeningBalances()
} }
} }
if (account.isInvest()) {
// calculate value of shares
value *= account.deepCurrencyPrice(from.addDays(-1));
}
// place into the 'opening' column... // place into the 'opening' column...
assignCell(outergroup, account, 0, value); assignCell(outergroup, account, 0, value);
} else { } else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment