Admin/Requests and Employee/Requests wrappers delegate to RequestService. Approval_WorkflowsService supplies selectable steps; ApprovalWorkflowService persists the hierarchy/category configuration. Repository calls delegate review, reset, restart and deletion to stored procedures.
The historical Workflow string is semicolon-delimited. The procedure reads the current chain; the snapshot does not establish immutable per-request workflow snapshots. The selection field named ApprovalWorkflowId can be a position in a role list rather than a role primary key—do not interchange them.
spReviewEmployeeRequest wraps its SQL work in BEGIN TRANSACTION with commit/rollback and a success result. It records EmployeeRequestReview, distinguishes intermediate/final approval, and invokes type-specific SQL outcomes. Do not extend that transaction guarantee to C# balance work, email, lender calls or an entire batch.
SQL-derived detail supersedes stale summaries: leave decline restores requester balance/perks in the described procedure; Requests prose elsewhere says no restoration. October Leave also records an extra reviewer-credit defect. Neither document is evidence that the deployed defect is fixed.
spResetEmployeeRequestApprovals hard-deletes EmployeeRequestReviews, returns status to New and clears review date. It does not explicitly reset ReviewStepsCount or next-review fields; source authors identify trigger dependencies whose DDL remains missing. Restart can re-debit balances. Reset and restart are not interchangeable repair actions.
spDeleteEmployeeRequest is described as hard deletion after balance handling and refuses payroll-linked records; API summaries label deletion soft. Resolve the exact deployed path before any destructive operation.
Controllers have class-level authorization, but that is not a complete tenant, subject, reviewer-step or action-level permission matrix. Verify those checks per endpoint and current company. Do not present a proposed self-approval guard as implemented. Preserve actor/requester distinction, review evidence and the reset’s evidence-loss limitation.
Notification recipient resolution can prefer a custom role with the same name as a built-in role. Review role collisions and avoid broadening recipients during troubleshooting. Lender push retries/idempotency and batch rollback guarantees are not established.
Requests & approval workflows — business documentation · Requests & approval workflows — technical documentation · Requests — configuration reference (deep dive) · Requests — API reference · Requests — user journeys · Requests — operational runbook
The July Requests snapshot contains stale claims: Leave belongs to workflow category 2, not 1; SQL decline restores leave balance despite an older paragraph saying otherwise; delete/reset semantics differ from summary labels. October Leave documentation owns its expanded states and balance lifecycle. Trigger DDL, self-approval enforcement, exact fine-grained grants, bulk atomicity and downstream retry guarantees remain unverified.