[office/kmymoney] kmymoney/plugins/views/reports/core/tests/data: Add test for investment reports with "all dates" range
Ralf Habacker <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit e320a8211cbd13837ca29068f9d3e986b595e0bd by Ralf Habacker.
Committed on 10/08/2026 at 11:20.
Pushed by habacker into branch 'master'.
Add test for investment reports with "all dates" range
CCBUG: 524050
A +5 -0 kmymoney/plugins/views/reports/core/tests/data/csv/test-investment-report-querytable-Investment-Performance-by-Account-_Customized---all-dates_.csv
M +6 -5 kmymoney/plugins/views/reports/core/tests/data/test-investment.xml
https://invent.kde.org/office/kmymoney/-/commit/e320a8211cbd13837ca29068f9d3e986b595e0bd
diff --git a/kmymoney/plugins/views/reports/core/tests/data/csv/test-investment-report-querytable-Investment-Performance-by-Account-_Customized---all-dates_.csv b/kmymoney/plugins/views/reports/core/tests/data/csv/test-investment-report-querytable-Investment-Performance-by-Account-_Customized---all-dates_.csv
new file mode 100644
index 000000000..b439a0c1d
--- /dev/null
+++ b/kmymoney/plugins/views/reports/core/tests/data/csv/test-investment-report-querytable-Investment-Performance-by-Account-_Customized---all-dates_.csv
@@ -0,0 +1,5 @@
+Account,Starting Market Value,Buy Value,Sell Value,Dividends Reinvested,Dividends Paid Out,Ending Market Value,Return,Return On Investment,Annualized Return,Extended internal rate of return
+"Shares"
+"BHP"," 0.00"," -22,475.00"," 2,245.00"," 449.00"," 4,265.00"," 20,654.00"," 4,689.00","20.86 %","34.22 %","44.41 %"
+Total Shares," 0.00"," -22,475.00"," 2,245.00"," 449.00"," 4,265.00"," 20,654.00"," 4,689.00","20.86 %","34.22 %","44.41 %"
+Grand Total," 0.00"," -22,475.00"," 2,245.00"," 449.00"," 4,265.00"," 20,654.00"," 4,689.00","20.86 %","34.22 %","44.41 %"
diff --git a/kmymoney/plugins/views/reports/core/tests/data/test-investment.xml b/kmymoney/plugins/views/reports/core/tests/data/test-investment.xml
index b972814f9..adfc0bcac 100644
--- a/kmymoney/plugins/views/reports/core/tests/data/test-investment.xml
+++ b/kmymoney/plugins/views/reports/core/tests/data/test-investment.xml
@@ -3,10 +3,10 @@
<KMYMONEY-FILE>
<FILEINFO>
<CREATION_DATE date=""/>
- <LAST_MODIFIED_DATE date="2025-01-22T23:18:38+01:00"/>
+ <LAST_MODIFIED_DATE date="2026-08-10T12:59:40+02:00"/>
<VERSION id="1"/>
- <FIXVERSION id="6"/>
- <APPVERSION id="5.1.90-882c11129"/>
+ <FIXVERSION id="11"/>
+ <APPVERSION id="5.2.70-edb34dfce"/>
</FILEINFO>
<USER name="" email="">
<ADDRESS street="" city="" state="" zip="" telephone="" country="" county="" zipcode="" postcode=""/>
@@ -110,7 +110,7 @@
</TRANSACTION>
</TRANSACTIONS>
<KEYVALUEPAIRS>
- <PAIR key="LastModificationDate" value="2025-01-22T23:18:38+01:00"/>
+ <PAIR key="LastModificationDate" value="2026-08-10T12:59:40+02:00"/>
<PAIR key="kmm-baseCurrency" value="AUD"/>
<PAIR key="kmm-id" value="{03147f88-51aa-4582-bde7-1b3a065cefa9}"/>
</KEYVALUEPAIRS>
@@ -145,10 +145,11 @@
<REPORT id="R000022" type="querytable 1.15" group="Investments" name="Investment Performance by Account (Customized - from period - two years)" comment="Custom Report" convertcurrency="1" favorite="0" skipZero="0" datelock="userdefined" rowtype="topaccount-account" querycolumns="performance" tax="0" propBudgetDiff="0" investments="1" loans="0" hidetransactions="0" showcolumntotals="1" detail="all" includestransfers="0" investmentsum="0">
<DATES from="2022-01-01" to="2024-01-01"/>
</REPORT>
- <REPORT id="R000024" type="querytable 1.15" group="Investments" name="Investment Transactions (Customized)" comment="Custom Report" convertcurrency="1" favorite="0" skipZero="0" datelock="userdefined" rowtype="topaccount" querycolumns="category,account,action,shares,price,balance" tax="0" propBudgetDiff="0" investments="1" loans="0" hidetransactions="0" showcolumntotals="1" detail="all" includestransfers="0">
+ <REPORT id="R000024" type="querytable 1.15" group="Investments" name="Investment Transactions (Customized)" comment="Custom Report" convertcurrency="1" favorite="0" skipZero="0" datelock="userdefined" rowtype="topaccount" querycolumns="category,account,action,shares,balance" tax="0" propBudgetDiff="0" investments="1" loans="0" hidetransactions="0" showcolumntotals="1" detail="all" includestransfers="0">
<DATES from="2022-01-01" to="2022-12-31"/>
</REPORT>
[suppressed due to size limit]
+ <REPORT id="R000026" type="querytable 1.15" group="Investments" name="Investment Performance by Account (Customized - all dates)" comment="Custom Report" convertcurrency="1" favorite="0" skipZero="0" datelock="alldates" rowtype="topaccount-account" querycolumns="performance" tax="0" propBudgetDiff="0" investments="1" loans="0" hidetransactions="0" showcolumntotals="1" detail="all" includestransfers="0" investmentsum="0"/>
</REPORTS>
<BUDGETS/>
<ONLINEJOBS/>