contractsDetailOpen: "contractsDetailOpen" = 'contractsDetailOpen'

Method name for PRE contractsDetailOpenPre and POST contractsDetailOpen

Triggered when user opens contract detail page /#/pm/contracts/<contractId>.

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();
}
};