Method name for PRE rebateAgreementsDetailNewCheckPre and POST rebateAgreementsDetailNewCheck
This method is triggered after pressing the New Rebate Agreement button at /#/rm/rebate-agreements, but before the rebate agreement is created.
If this method return false a rebate agreement will not be created and user will stay at rebate agreements list.
In this method you don't have access to rebateAgreementAPI, but you can use other api for checking conditions from CRMs.
Example: (Basic)
exportconstrebateAgreementsDetailNewCheck = async ({ api }) => { // TODO: Add your code return; }
Method name for PRE
rebateAgreementsDetailNewCheckPre
and POSTrebateAgreementsDetailNewCheck
This method is triggered after pressing the New Rebate Agreement button at
/#/rm/rebate-agreements
, but before the rebate agreement is created. If this method returnfalse
a rebate agreement will not be created and user will stay at rebate agreements list. In this method you don't have access torebateAgreementAPI
, but you can use other api for checking conditions from CRMs.