Const
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();
}
};
Method name for PRE
quotesDetailOpenPre
and POSTquotesDetailOpen
Triggered when user opens quote detail page
/#/qc/quotes/<quoteId>
.