Const
export 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
quotesDetailCopyPre
and POSTquotesDetailCopy
Triggered after pressing the Duplicate from quotes list
/#/qc/quotes
or quote detail/#/qc/quotes/<quoteId>
.Notes:
quoteCopyAPI
is exclusively accessible within thequotesDetailCopy
method. Attempting to accessquoteCopyAPI
within thequotesDetailCopyPre
method 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.