Repository navigation
[29.x] - Slice 638116: [Expense Agent][VENDOR] Adding interim approver to the workflow (January '27) - #14412
Conversation
…r to the workflow
Good Sense Reviewer - Round 1Recommendation: Accept with SuggestionsWhat this PR doesAdds a configured interim approver per expense user, submission-time refresh and alternate coverage, and a shared overwrite setting for Business Central and the web capability. Read-only API properties expose the setup. Submission resolves the final approver first, clears ineligible or conflicting interim assignments, and retains the existing interim-before-final approval sequence. Reference cleanup collects confirmations before writing. Tests cover sequential approval, overwrite rules, setup changes, conflicts, delegation, and alternate-assignment logging. Problem-solution fitFit: Partial The configurable routing and overwrite behavior match the requested workflow, but normal unchanged prefilled assignments are missing from assignment history. SuggestionsS1 (🟠 Moderate): Cover ineligible interim approvers at submission S2 (🟠 Moderate): Record the prefilled interim approver in history Risk assessment and necessityRisk: The main regression surface is approval routing and its audit history, not amount calculation or ledger posting. The overwrite setting intentionally defaults to off, and invalid interim assignments intentionally fall back to final approval. Schema/API additions are additive, and system delegation remains available when submitter overwriting is disabled. Necessity: Without this feature, interim approvers must be assigned report by report, and administrators cannot centrally configure or control submitter overrides across clients. Reusing the established sequential approval workflow keeps the feature scoped.
|
Good Sense Reviewer - Round 2Recommendation: Accept with SuggestionsWhat this PR doesAdds configured interim approvers, submission-time refresh and alternate coverage, and a shared overwrite setting for Business Central and the web capability. The existing workflow requires interim approval before final approval. The latest changes disable drill-down on the read-only interim approver name and give the new capability enum value ordinal 12. These changes do not alter routing or address the two earlier suggestions. The capability is new in this change, and its API output uses the enum name rather than its ordinal. Problem-solution fitFit: Partial The configurable routing and overwrite behavior match the requested workflow. A normal unchanged prefilled interim assignment still has no assignment-history event. Status of previous suggestions
S1 (🟠 Moderate): Cover ineligible interim approvers at submission S2 (🟠 Moderate): Record the prefilled interim approver in history New observations (commits since round 1)None — the display and enum changes introduce no new findings. Risk assessment and necessityRisk: The main regression surface remains approval routing and activity history, not amount calculation or ledger posting. The overwrite option intentionally defaults to off, so existing submitters need an administrator to enable manual assignment. Schema and read-only API additions are additive; system alternate delegation remains available. The latest display and enum changes add little risk and introduce no new BaseApp event dependency. Tests were read, not executed; no build or runtime verification was performed. Necessity: Central setup avoids assigning interim approvers report by report and gives administrators consistent overwrite control across clients. Reusing the existing sequential approval workflow keeps the feature and its release backport scoped.
|
|
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
What & why
Backports configurable interim approval for Expense Agent from #14409 to
releases/29.x. Administrators can set an Expense Report Interim Approver per expense user in Expense Approval Setup. The approver is shown on the expense user and prepopulated on the expense report when the agent is enabled. The existing workflow routes the report to the interim approver before the final approver.InterimApproverOverwriteweb app capability use the same setting. System delegation can still apply an alternate when overwrite is off.Linked work
AB#660313
How I validated this
What I tested and the outcome (required — be specific: scenarios, commands, screenshots for UI changes)
Risk & compatibility