quotesDetailOpen: "quotesDetailOpen" = 'quotesDetailOpen'

Method name for PRE quotesDetailOpenPre and POST quotesDetailOpen

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

export const quotesDetailOpen = async ({ api, quoteAPI }) => {
// TODO: Add your code
return;
}
export const quotesDetailOpen = async ({ quoteAPI }) => {
const quoteWFStatus = await quoteAPI.getHeaderValue('workflowStatus');
if (['DRAFT', 'DENIED', 'WITHDRAWN'].includes(quoteWFStatus)) {
await quoteAPI.recalculate();
}
};