Approval Rules not working correctly for salary change percentage
Summary:
I have created an Approval Rule for Change Assignment where I have mentioned the following conditions:
Condition 1: If Line Manager is the requestor, worker belongs to DNU Worker Category, Worker is Demoted and Salary Change is less than greater than -20 % or null.
Condition 1: ((GetManager("LINE_MANAGER",Task.payload.Worker's Current Assignment.result.Assignment Supervisor) == transactionApprovalRequest.Requestor) AND (Worker's Proposed Assignment.result.Action Name == "Assignment Update") AND (Worker's Proposed Assignment.result.Action Reason Code == "DEMOTION") AND (Worker's Current Assignment.result.Worker Category == "DNU") AND (GetAllRepresentatives("HR_REP",Task.payload.Worker's Current Representative.result) != transactionApprovalRequest.Requestor) AND (GetAllRepresentatives("DM",Task.payload.Worker's Current Representative.result) != transactionApprovalRequest.Requestor) AND ((Worker's Salary Details.Proposed Change Percentage > -20) OR (Worker's Salary Details.Proposed Change Percentage == null)))