Const
export const contractsDetailOpen = async ({ api, contractAPI }) => {
// TODO: Add your code
return;
}
export const contractsDetailOpenPre = async ({ contractAPI }) => {
const contractsWFStatus = await contractAPI.getHeaderValue('workflowStatus');
if (['DRAFT', 'DENIED', 'WITHDRAWN'].includes(contractsWFStatus)) {
await contractAPI.recalculate();
}
};
Generated using TypeDoc
Method name for PRE
contractsDetailOpenPre
and POSTcontractsDetailOpen
Triggered when user opens contract detail page
/#/pm/contracts/<contractId>
.