Constexport const quotesDetailCopy = async ({ api, quoteOriginAPI, quoteCopyAPI }) => {
// TODO: Add your code
return;
}
export const quotesDetailCopyPre = async ({
quoteOriginAPI,
api: { notify }
}) => {
await quoteOriginAPI.addLineItems(['AK_0005']);
await notify.success('Triggered interceptor quotesDetailCopy');
};
export const quotesDetailCopy = async ({
quoteOriginAPI,
quoteCopyAPI,
api: { notify }
}) => {
await quoteOriginAPI.addLineItems(['AK_0005']);
await quoteCopyAPI.addLineItems(['AK_0008']);
await notify.success('Triggered interceptor quotesDetailCopy');
};
Method name for PRE
quotesDetailCopyPreand POSTquotesDetailCopyTriggered after pressing the Duplicate from quotes list
/#/qc/quotesor quote detail/#/qc/quotes/<quoteId>.Notes:
quoteCopyAPIis exclusively accessible within thequotesDetailCopymethod. Attempting to accessquoteCopyAPIwithin thequotesDetailCopyPremethod will result in it beingundefined.Additional Properties:
quoteCopyAPI: This is a quoteAPI designed for interacting with a copy of the quote.quoteOriginAPI: This is a quoteAPI designed for interacting with the original quote.