Differences

This shows you the differences between two versions of the page.

adminhelp:quotesadministration:quote_2.0:solution_design:section_calculations [2019/02/11 08:57]
mnikolic [Section Calculations]
adminhelp:quotesadministration:quote_2.0:solution_design:section_calculations [2019/08/19 07:55] (current)
mnikolic [Custom Section Calculations]
Line 38: Line 38:
 The following example shows you how to create a custom calculation that calculates a discounted value of a quote item custom field in a section. The following example shows you how to create a custom calculation that calculates a discounted value of a quote item custom field in a section.
  
-  - [[adminhelp:quotesadministration:quote_2.0:quote_fields_and_calculations:fields_and_calculations|Create three quote item custom fields]]:+  - Create three [[adminhelp:quotesadministration:quote_2.0:quote_fields_and_calculations:fields_and_calculations|quote item custom fields]]:
     * **Sum** - aggregate type **Sum**     * **Sum** - aggregate type **Sum**
     * **Discount_Percent** - type **Number**     * **Discount_Percent** - type **Number**
Line 44: Line 44:
   - Add a custom calculation to the **Discount_Percent** field. \\ ''x = context.AffectedSection'' \\ ''x["Discount_Value"] = x["Sum"] * x["Discount_Percent"] / 100;''   - Add a custom calculation to the **Discount_Percent** field. \\ ''x = context.AffectedSection'' \\ ''x["Discount_Value"] = x["Sum"] * x["Discount_Percent"] / 100;''
   - Save the changes and open the **Solution Design** tab in a quote. \\ The **Sum** column is populated with values for each item and a summed up value displays in the section field. If you change the percent in the **Discount_Percent** field, and refresh the section, the **Discount_Value** field will be populated with the new discounted values.   - Save the changes and open the **Solution Design** tab in a quote. \\ The **Sum** column is populated with values for each item and a summed up value displays in the section field. If you change the percent in the **Discount_Percent** field, and refresh the section, the **Discount_Value** field will be populated with the new discounted values.
 +\\
 +== More Information ==
 +\\
 +[[adminhelp:quotesadministration:quote_2.0:solution_design:adding_and_allocating_products_to_sections|Adding and Allocation Products to Sections]]
  
 +[[adminhelp:quotesadministration:quote_2.0:solution_design:creating_sections|]]
 +
 +[[adminhelp:quotesadministration:quote_2.0:solution_design:section_distribution|Section Distribution]]
You are here: SAP Sales Cloud CPQ Online HelpAdmin Page HelpQuotes AdministrationQuote 2.0Solution DesignSection Calculations