Actions
Bug #150
open
SV
SV
[HR][Verify] C-01: Approving an already approved/rejected leave request double-deducts the balance
Bug #150:
[HR][Verify] C-01: Approving an already approved/rejected leave request double-deducts the balance
Start date:
09/28/2026
Due date:
% Done:
0%
Estimated time:
Resolved By:
Description
LeaveRequestService.ApproveAsync calls _balanceService.DeductAsync and saves it BEFORE LeaveRequest.Approve()'s state guard runs. Confirmed in code (LeaveRequestService.cs:364-373). Reproduce on the test box: approve a request twice (or approve then reject then approve) and watch the balance. Part of #140.
Actions