[master] Financial Report Recalculate clears Global Dimension filters - #10179
Conversation
…Bug-646538-Financial-Report-Recalculate-clears-Global-Dimension-filter
There was a problem hiding this comment.
Pull request overview
Fixes a regression where using Recalculate on Acc. Schedule Overview overwrote the user’s currently entered Global Dimension filters by reloading persisted/default financial report filters. The change preserves in-page filter state during recalculation and adds a regression test to ensure both UI control values and underlying FlowFilters remain unchanged.
Changes:
- Preserve the current
TempFinancialReportfilter state during Recalculate by skippingLoadFinancialReportFiltersOrDefaulton that reload. - Add an automated test verifying Global Dimension 1/2 filters are retained after recalculation (copied into the relevant localized test layers).
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| src/Layers/W1/BaseApp/Finance/FinancialReports/AccScheduleOverview.Page.al | Adds a flag to preserve current page filters during Recalculate-triggered reload. |
| src/Layers/W1/Tests/ERM-Finance/ERMAccountSchedule.Codeunit.al | Adds regression test asserting Global Dimension filters persist across Recalculate. |
| src/Layers/SE/Tests/ERM-Finance/ERMAccountSchedule.Codeunit.al | Mirrors the regression test in SE test layer. |
| src/Layers/RU/Tests/ERM-Finance/ERMAccountSchedule.Codeunit.al | Mirrors the regression test in RU test layer. |
| src/Layers/ES/Tests/ERM-Finance/ERMAccountSchedule.Codeunit.al | Mirrors the regression test in ES test layer. |
| src/Layers/CZ/Tests/ERM-Finance/ERMAccountSchedule.Codeunit.al | Mirrors the regression test in CZ test layer. |
| src/Layers/APAC/Tests/ERM-Finance/ERMAccountSchedule.Codeunit.al | Mirrors the regression test in APAC test layer. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Agentic PR Review - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThis PR changes page 490 so the Recalculate action keeps the current SuggestionsS1 - Verify recalculated amounts stay filtered Risk assessment and necessityRisk: This is a financial reporting page, so an incorrect fix could silently broaden financial analysis results. The code change is narrow: it only skips Necessity: The bug is valid and important because the work item shows standard Financial Reports can lose current Global Dimension filters on Recalculate and report unfiltered results. The chosen scope is right: preserving current page state for this one reload fixes the root cause while keeping saved/default filter loading for other paths.
|
Workitem : Bug 646538: [Master][ALL-E] Financial Report Recalculate clears Global Dimension filters
Fixes AB#646538
Issue: Recalculating a financial report cleared the Global Dimension filters entered on the Acc. Schedule Overview page.
Cause: Recalculate reloaded persisted/default report filters, overwriting the current in-page filter values.
Solution: Preserve the current page filters during recalculation and add an automated regression test verifying the UI values and underlying FlowFilters remain unchanged.