Method name for PRE contractsDetailNewCheckPre and POST contractsDetailNewCheck
This method is triggered after pressing the New Contract button at /#/pm/contracts, but before the contract is created.
If this method return false a contract will not be created and user will stay at contracts list.
In this method you don't have access to contractAPI, but you can use other api for checking conditions from CRMs.
Example: (Basic)
exportconstcontractsDetailNewCheck = async ({ api }) => { // TODO: Add your code return; }
Method name for PRE
contractsDetailNewCheckPre
and POSTcontractsDetailNewCheck
This method is triggered after pressing the New Contract button at
/#/pm/contracts
, but before the contract is created. If this method returnfalse
a contract will not be created and user will stay at contracts list. In this method you don't have access tocontractAPI
, but you can use other api for checking conditions from CRMs.