Repository navigation
Initialize NoOfDetailedCustomerEntries in OnFindRecord - Fixes #13621 - #14830
Joris Poppe (jorispoppe) wants to merge 1 commit into
Conversation
|
Issue #13621 is not valid. Please make sure you link an issue that exists, is open and is approved. |
Good Sense Reviewer - Round 1Recommendation: AcceptWhat this PR doesResets the Detailed Ledger Entries count when the Customer Ledger Entry FactBox searches for a record. This prevents a count from the previous entry remaining visible after the parent page clears its linked entry. The reset runs before Problem-solution fitFit: Strong The missing reset directly explains the stale count after the linked entry is cleared. Adding it to the existing initialization block addresses that scenario without changing normal entry selection. SuggestionsNone. Risk assessment and necessityRisk: Low. Necessity: Without this change, clearing the linked entry leaves a misleading count beside otherwise cleared fields until a valid entry is loaded. The fix is narrowly scoped to that display defect.
|
Predrag Maricic (PredragMaricic)
left a comment
There was a problem hiding this comment.
The added reset correctly clears the Detailed Ledger Entries count when no customer ledger entry is found, consistent with the adjacent counters. Existing-record counts continue to be recalculated in OnAfterGetRecord. No blocking findings.
What & why
Customer Ledger Entry Factbox - Detailed Ledger Entries is not updated when linked entry is cleared
Add the factbox on a cardpage as a part
Select a value of the Customer Ledger Entry on your page
Factbox is filled with data
Clear the Customer Ledger Entry field
All data on the Factbox is cleared except for the Detailed Ledger Entry count
Linked work
Fixes #13621
How I validated this
What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)
Risk & compatibility
None