Const
Method name for PRE quotesDetailOpenPre and POST quotesDetailOpen
quotesDetailOpenPre
quotesDetailOpen
Triggered when user opens quote detail page /#/qc/quotes/<quoteId>.
/#/qc/quotes/<quoteId>
export const quotesDetailOpen = async ({ api, quoteAPI }) => { // TODO: Add your code return;} Copy
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(); }}; Copy
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>
.