Source: https://vaultcrmhelp.veeva.com/doc/Content/CRM_topics/OrderManagement/PricingRules/BestPricingLogic.htm

## Best Pricing Logic

Best Pricing Logic in Order Management evaluates pricing rules at every level of the Pricing Rule Hierarchy simultaneously to determine the most favorable rule instead of following the Pricing Rule Hierarchy from top to bottom. This allows users to apply the best discount available to the customer regardless of where the rule falls within the Pricing Rule Hierarchy.

**Who can use this feature?**

* End Users - Browser, iPad, Windows
* [Using Best Pricing Logic](#Using)
* Users do not require an additional license

### Configuring Best Pricing Logic for

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)All Users](#)

To configure this feature:

1. Ensure [Configuring Order Management](../OM_Config.htm) is complete.
2. Navigate to **Admin > Users & Groups > Permission Sets**.
3. Select the appropriate permission set.
4. Select **Objects**.
5. Grant the following permissions for the appropriate object field(s)

   | Object | Object Permission | Object Types | Fields | Field Permission |
   | --- | --- | --- | --- | --- |
   | order\_\_v | CRED | All | best\_discount\_rule\_\_v | Edit |
   | order\_line\_\_v | CRED | All | * line\_best\_price\_rule\_\_v * brand\_best\_price\_rule\_\_v * free\_goods\_best\_price\_rule\_\_v | Edit |

#### Displaying Best Pricing Logic (Optional)

Display the Best Pricing Logic’s output as a field on an Order or Order Line.

1. Navigate to **Admin > Configuration > Objects > order\_line\_\_v**.
2. Select the **Layouts** tab.
3. Select the appropriate order\_line\_\_v layout.
4. Place the desired field(s) on the layout:
   * **Line Discount** - Discount applies to an individual product on an Order Line
   * **Order Discount** - Discount applies to all products on an Order
   * **Brand Discount** - Discount applies to all products of a Brand on an Order
   * **Free Goods** - The quantity or percentage of Free Goods applied to an Order Line
5. Select **Save**.

### Using Best Pricing Logic as

[![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)End Users](#)

When Best Pricing Logic is not configured, pricing rules are evaluated sequentially according to the top-down Pricing Rule Hierarchy, applying the first match regardless of the discount amount. When Best Pricing Logic is configured, the standard Pricing Rule Hierarchy is bypassed. Instead, all active pricing rules across the hierarchy are evaluated simultaneously to select the largest discount for the customer.

Best Pricing Logic is not supported with Product Group Level pricing rules, Cross Product pricing rules, Chain pricing rules, or Kit Items.

The system evaluates discounts independently for each Pricing Rule Hierarchy level:

* Campaign and Contract
* Campaign
* Contract
* Standard (Account, Price Book, Account, and Global)

The best price for each level is then compared to identify the greatest discount percentage, lowest net price, or highest Free Good quantity, before the final best pricing rule is selected. If a tie is detected between levels, the higher level of the standard Pricing Rule Hierarchy is selected to break the tie.

To identify the Pricing Rule Hierarchy level that was evaluated to have the best price, the following fields are stamped to capture the Pricing Rule level selected.

* best\_discount\_rule\_\_v (order\_\_v object)
* line\_best\_discount\_rule\_\_v (order\_line\_\_v object)
* brand\_best\_discount\_rule\_\_v (order\_line\_\_v object)
* free\_goods\_best\_discount\_rule\_\_v (order\_line\_\_v object)

Values:

* **campaign\_with\_contract\_\_v** - The best price came from the Campaign and Contract level
* **order\_campaign\_\_v** - The best price came from the Campaign level
* **contract\_\_v** - The best price came from the Contract level
* **standard\_\_v** - The best price came from the standard Account-based level (Account, Price Book, Account Group, or Global)
* **combined\_\_v** - Multiple applied Pricing Rules across comparison types were from different Pricing Rule Hierarchy levels

### Related Topics

[Pricing Rules Overview](PricingRulesOverview.htm)

[Discount Pricing Rules](Discounts/DiscountRule.htm)

[Free Goods Pricing Rules](FreeGoods/FreeGoodsRule.htm)
