https://bugs.kde.org/show_bug.cgi?id=427541

Ralf Habacker <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #11 from Ralf Habacker <[email protected]> ---
Created attachment 189636
  --> https://bugs.kde.org/attachment.cgi?id=189636&action=edit
Minimal test case

Using a minimal test file with two investment accounts:

Assets
 ├─ Shares (BHP)
 ├─ Shares (RIO)
 └─ Shares (Brokerage)

Transactions by Category behaves correctly:
- Unfiltered: BHP + RIO both appear
- Filtered to RIO: only RIO appears

Baseline: Transactions by Category (BHP + RIO)
This export shows both investment roots contribute correctly:

Investment-only actions (Add/Remove shares):

"2022-08-01",...,"BHP","","5.00"," 1.00"," 5.00"
"2022-09-01",...,"BHP","","-5.00"," 1.00"," -5.00"
"2023-08-01",...,"RIO","","3.00"," 1.00"," 3.00"
"2023-09-01",...,"RIO","","-3.00"," 1.00"," -3.00"

Expense → Brokerage (both investments present):

"2022-01-10",...,"Brokerage","BHP","Buy shares",...," -25.00"
"2023-01-10",...,"Brokerage","RIO","Buy shares",...," -25.00"
Total Brokerage ... " -50.00"

Income → Dividend / Interest (both investments present):

... "Dividend","BHP", ...
... "Dividend","RIO", ...
... "Interest","BHP", ...
... "Interest","RIO", ...
Total Income ... " 6,533.00"

Conclusion:
With no account filter applied, the report engine aggregates splits from both
Shares (BHP) and Shares (RIO) correctly across Expense and Income categories.

Filtered: Transactions by Category (RIO only)
This export shows that when you filter to RIO only:

All BHP rows are removed

All RIO rows remain

Category totals recalculate correctly

Examples:

"2023-01-10","","Brokerage","RIO","Buy shares",...," -25.00"
...
"2023-03-10","","Dividend","RIO","Dividend",...," 1,200.00"
...
"2023-05-01","","Interest","RIO","Interest income",...," 80.00"

Totals:

Total Brokerage ... " -25.00"
Total Dividend ... " 1,200.00"
Total Interest  ... " 120.00"
Grand Total     ... " 1,295.00"

Conclusion: 
For this specific report configuration, the account filter is applied correctly
and selectively.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to