Project

General

Profile

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

Added by Sravan V S about 2 months ago. Updated 3 days ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Target version:
-
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

Also available in: PDF Atom