Method name for PRE compensationsDetailNewCheckPre and POST compensationsDetailNewCheck
This method is triggered after pressing the New Compensation Plan button at /#/sc/compensation-plans, but before the compensation plan is created.
If this method return false a compensation plan will not be created and user will stay at compensation plans list.
In this method you don't have access to compensationPlanAPI, but you can use other api for checking conditions from CRMs.
Example: (Basic)
exportconstcompensationsDetailNewCheck = async ({ api }) => { // TODO: Add your code return; }
Method name for PRE
compensationsDetailNewCheckPreand POSTcompensationsDetailNewCheckThis method is triggered after pressing the New Compensation Plan button at
/#/sc/compensation-plans, but before the compensation plan is created. If this method returnfalsea compensation plan will not be created and user will stay at compensation plans list. In this method you don't have access tocompensationPlanAPI, but you can use other api for checking conditions from CRMs.