Salary Validation rule is triggering for all the rows
We have implemented salary validation on salary business object. If user select hourly grade position & if user selects salary basis as Annual, display an error msg & same way if user selects salaried grade position & if user selects salary basis as hourly display an error msg. It works fine when we add a new row in change assignment, transfer & promotion (Also included Salary Change & Change salary in Action type code) . But when User tries to delete the latest row thru Pay History it is not allowing to delete it, it is displaying error msg.
To correct the history rows, we have used the below logic which is causing the issue. it is triggering for all the rows. How to identify the rule to trigger only for the row which we are trying to update (history row)?