quotesDetailCopy: "quotesDetailCopy" = 'quotesDetailCopy'

Method name for PRE quotesDetailCopyPre and POST quotesDetailCopy

Triggered after pressing the Duplicate from quotes list /#/qc/quotes or quote detail /#/qc/quotes/<quoteId>.

Notes: quoteCopyAPI is exclusively accessible within the quotesDetailCopy method. Attempting to access quoteCopyAPI within the quotesDetailCopyPre method will result in it being undefined.

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.

Example: (Basic)

export const quotesDetailCopy = async ({ api, quoteOriginAPI, quoteCopyAPI }) => {
// TODO: Add your code
return;
}

Example: (Add Item to Original)

export const quotesDetailCopyPre = async ({
quoteOriginAPI,
api: { notify }
}) => {
await quoteOriginAPI.addLineItems(['AK_0005']);
await notify.success('Triggered interceptor quotesDetailCopy');
};

Example: (Add Item to Original and Copy)

export const quotesDetailCopy = async ({
quoteOriginAPI,
quoteCopyAPI,
api: { notify }
}) => {
await quoteOriginAPI.addLineItems(['AK_0005']);
await quoteCopyAPI.addLineItems(['AK_0008']);
await notify.success('Triggered interceptor quotesDetailCopy');
};

Generated using TypeDoc