Issue with leave workflow approved even when time account balance is zero
1) User Applies a Time Off
2) Manager has not yet approved the time off
3) Using Manage data the time off Qty is set to 0 from 1
4) Manager Approves Time Off.
5) Time Off Gets Approved and user balance falls below 0
We would be excepting error during approval since balance is less than leave applied for however it proceed without any error and user balance falls negative.
Employee Central 2.0
Reproducing the Issue
Step 1: Login to Instance
Step 2: Proxy as Test Employee
Step 3: Approve Leave for Test Employee
Step 4: Before workflow for leave is approved, go to Manage Data->Time account of Test User and set Balance to 0.
Step 5: Proxy as Leave approver and try to approve leave request.
Step 6: Leave gets saved successfully even when time account balance is zero.
Time off validations are set up in the Time off feature User Interface.
Managers and admins manage time account from either administer time workbench or Manage time off page.
Manage Data Time account is a reference object to store the transactions.
We cannot have same validations as User Interface to occur at the manage data level.
Negative employee time entry is allowed in the time accounts as after the leave is approved time account is just updated with -1 balance with no validation related to current balance.
Current balance is checked only during leave application.
Leave workflow successfully saved even when manually time account balance changed to zero , KBA , leave workflow successfully saved , even when manually balance set to zero , LOD-SF-EC-TIM , Time Off , Problem