---
schema_version: "1"
id: 8f17408def19af35073ae051fe26fba8a5d4a78819fae74757716fa38236c705
title: Configure the Skip Current Calculation Step
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_admin_task_skip_current_calculation_step.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_admin_task_skip_current_calculation_step.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 106a41c8dabca4337c271c31ebb6bb7fa46d56f84dce555be14900ce3de86355
description: You can apply or skip conditions for a calculation step during order calculation. This user exit is called before the calculation.
products:
  - Consumer Goods
release: "264"
---
# Configure the Skip Current Calculation Step

You can apply or skip conditions for a calculation step during order calculation. This user exit is called before the calculation.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d115574e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d115574e63 ">To configure user exits:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d115574e63 ">
              <p>CGCloud Business Admin</p>
              <p style="margin-bottom:0;">OR</p>
              <p style="margin-bottom:0;">CGCloud Retail Business Admin </p>
            </td>

          </tr>
        </tbody>
      </table>

1. From the App Launcher, find and select **User exits**.
2. Click **New**.
3. From the Type dropdown list, and select **Configure After Calculation Result**.
4. Click **Save**.
5. Click the **Related** tab, and then click **New**.
6. Enter the query.
    
    Use multiple user exit content records to structure the code. For example, structure the content so that one record holds the return variable name and the start of the switch statement. Use another record to hold the logic for the different user exit IDs, and another record to return the result or variable.
    
    <table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
            <thead class="slds-text-title_caps ">
              <tr><th class="slds-cell-wrap" scope="col" id="d115574e151">Sort Order</th>
              <th class="slds-cell-wrap" scope="col" id="d115574e154">User Exit Content</th>
              <th class="slds-cell-wrap" scope="col" id="d115574e157">Description</th>
            </tr></thead>
            <tbody><tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d115574e151">1</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d115574e154">
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-html">var SkipCalcStep = false;

switch(UserExitId) {
</code></pre>
              </td>
              <td class="slds-cell-wrap" data-label="Description" headers="d115574e157">
                <p>Declaring return variable and start of the switch statement</p>
              </td>
            </tr>
            <tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d115574e151">2</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d115574e154">
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-html">case "320_SkipStep_CustomerHierarchyCompleteProduct":

    // Get no Percentage Discount if Product = "Empower Cola 1,0 L PET"
    if(Utils.isDefined(ProductAttributes[0].text1) &amp;&amp; ProductAttributes[0].text1 === "Empower Cola 1,0 L PET"){
      SkipCalcStep = true;
    }
    break;
</code></pre>
              </td>
              <td class="slds-cell-wrap" data-label="Description" headers="d115574e157">Logic that handles the user exit id “320_SkipStep_CustomerHierarchyCompleteProduct”
              </td>
            </tr>
            <tr class="">
              <td class="slds-cell-wrap" data-label="Sort Order" headers="d115574e151">3</td>
              <td class="slds-cell-wrap" data-label="User Exit Content" headers="d115574e154">
                <pre class="line-numbers slds-box slds-box_x-small slds-theme_shade slds-m-top_medium slds-m-bottom_medium slds-scrollable_x"><code class="language-html">}
return SkipCalcStep
</code></pre>
              </td>
              <td class="slds-cell-wrap" data-label="Description" headers="d115574e157">Closing the switch statement and returning the return variable</td>
            </tr>
          </tbody></table>
7. From the App Launcher, find and select **Calculation Schemas**.
8. Select a calculation schema, and click **Edit**.
9. In the Calculation Schema Steps section, select a calculation step to apply to this user exit. For example, the above user exit content is for case step 320.
10. In the User Exit section, enter the user exit ID to apply to the calculation. For example, the user exit ID for case step 320 is 320\_SkipStep\_CustomerHierarchyCompleteProduct.
11. Click **Save**.