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
compensationsDetailNewCheckPre
and POSTcompensationsDetailNewCheck
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 returnfalse
a 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.