quotesDetailOpen: "quotesDetailOpen" = 'quotesDetailOpen'

Method name for PRE quotesDetailOpenPre and POST quotesDetailOpen

Triggered when user opens quote detail page /#/qc/quotes/<quoteId>.

Example: (Basic)

export const quotesDetailOpen = async ({ api, quoteAPI }) => {
// TODO: Add your code
return;
}

Example: (Recalculate only with status DRAFT, DENIED and WITHDRAWN)

export const quotesDetailOpen = async ({ quoteAPI }) => {
const quoteWFStatus = await quoteAPI.getHeaderValue('workflowStatus');
if (['DRAFT', 'DENIED', 'WITHDRAWN'].includes(quoteWFStatus)) {
await quoteAPI.recalculate();
}
};

Generated using TypeDoc