[Master] - Bug 650785: [Expense Agent] Deleting an itemized Expense Category shows misleading missing-subcategories confirmation - #11705
Conversation
Good Sense Reviewer - Round 1Recommendation: Accept with SuggestionsWhat this PR doesThe change suppresses setup confirmations while a record is being deleted. It stops the missing-subcategories prompt from appearing after related subcategories were already cascade-deleted, and it applies the same guard to the blank employee prompt on Expense User. The main category scenario is addressed because Problem-solution fitFit: Strong The diff targets the page close path that shows the misleading message after deletion, and it keeps normal close validation for non-delete closes. The extra Expense User change follows the same pattern, but it needs the cancellation guard noted below. SuggestionsS1 (🟠 Moderate): Delete flag stays set after cancellation Risk assessment and necessityRisk: Low. The change is limited to page close confirmations in Expense Agent master data. The main regression surface is suppressing a valid close warning if a delete is cancelled or blocked, not posting or ledger data. Necessity: The change is needed because the previous confirmation is shown in a delete flow where the category will not be used again. The scope is small and fits the reported UX bug.
|
Prangshuman Das (t-prda)
left a comment
There was a problem hiding this comment.
Please review the suggestion in the comment: #11705 (comment)
Good Sense Reviewer - Round 2Recommendation: Accept with SuggestionsWhat this PR doesThe new commit changes the expense-user delete guard so the page only treats a delete as "in progress" when the confirmation was actually accepted, instead of marking it unconditionally before the confirmation result is known. This matches the earlier suggestion for that page. Status of previous suggestions
New observations (commits since round 1)None - the new commit only changes the expense-user guard already covered by S1. Risk assessment and necessityRisk: Low. Both the fixed and the still-open path only affect a page close confirmation, not the underlying delete or any posted data - a blocked deletion still correctly leaves the record in place either way. Necessity: Unchanged from round 1 - the core scenario is fixed; the remaining gap is a smaller, same-shape risk on the sibling page.
|
AB#650785