Implement Penny Perfect Pricing
Here are a few scenarios to implement and calculate complex pricing for orders.
Required Editions
Make sure you complete all the tasks listed at Prerequisites for Penny Perfect Pricing.
Available in: Lightning Experience Available in: Enterprise and Unlimited Editions that have Consumer Goods Cloud enabled |
| User Permissions Needed | |
|---|---|
| To implement Penny Perfect Pricing: | (CGCloud Business Admin OR CGCloud Retail Business Admin) AND Penny Perfect Pricing |
Calculate Base Price for Orders Using Penny Perfect Pricing
Implement Penny Perfect Pricing (PPP) for NTO Store #226. Calculate the base price for order items using PPP. Base price calculation is the mandatory calculation step for an order.
Configure PPP on the CG Cloud desktop app for Base Price Calculation
-
Create a key type as My Customer + Product with these
configurations:
- Select the Customer or Customer Hierarchy and Product or Product Hierarchy fields.
- To synchronize conditions only for the sales rep’s customer, select the Distribution Category as Customer.
-
Create a key type as My Product with these
configurations:
- Select the Product or Product Hierarchy field.
- To synchronize conditions for all products of the sales rep, select the Distribution Category as To All.
- This key type can be reused for the product sub-category condition.
- For the product condition search, create a search strategy as My Base Price Search and set it as Active.
-
Add a
search step with these configurations:
- Select Key type as My Customer + Product.
- Select the Customer Role as Orderer as we’re searching for a specific customer.
- Set the Exclusive flag to stop the condition search when it’s found.
- Set the customer or product hierarchy as No.
-
Add a
search step with these configurations:
- Select Key type as My Product.
- To stop the condition search after the product is found, set the Exclusive flag.
- Set the Customer Hierarchy Search or Product Hierarchy Search as No.
-
Add a
search step with these configurations:
- Select the key type as My Product.
- To stop the condition search after the product hierarchy is found, set the Exclusive flag.
- Set the Product Hierarchy Search.
-
Create a pricing condition template as My Base Price with
these configurations:
- Select Record Type as Default.
- Select Meta Type as Price.
- Select Condition Level as Order Item because the calculation is price per product.
- Deactivate Rounding.
- Set the Condition Search field as My Base Price Search.
-
Create a schema as My Price Calculation with these
configurations:
- Add a calculation step and set it to Active.
- Select the Pricing Condition Template as My Base Price, Target Condition as Base Price (Receipt), Target Result as Value(Receipt), Price relevant as Yes, and mark the step as Mandatory.
-
For schema determination:
- On the Customer Extension object, set the Pricing Type field for the customer to Standard.
- On the Order Template, configure Compute Price as Offline (Button), Generate Pricing Log as Yes, and Pricing Type as Standard.
- On Calculation Schema Determination, select My Price Calculation as Schema, and Pricing, Customer, and Order Price Type as Standard.
-
Set the Unit of Measure for various products and
configure:
- One Sales Unit has 12 Consumer Units for Empower Cola and Empower Cherry.
- One Sales Unit as 10 Consumer Units for Empower Lemon.
Validate Pricing Conditions
- Condition value as $17.88 for NTO Store #226 and Empower Cola 1.0 L PET (store and Stock Keeping Unit (SKU) level).
- Condition value as 21.48 for the Empower Lemon 1.5 L PET Bottle (product level).
- Condition value as 22.68 for Empower Cola 1.0 L PET (product level).
- Condition value as 23.88 for Soft Drinks (Product hierarchy level - Subcategory).
Create an Order and Calculate Price on the CG Cloud Offline mobile app
- Start the mobile app to sync new configurations and conditions.
- Create an order for *NTO Store #226.
- Modify the quantity as 10 Sales Units and 12 Consumer Units for Empower Cola 1.0 L PET and Empower Lemon 1.5 L PET Bottle.
- Order another soft drink of your choice (for example, Empower Cherry 1.5 L PET Bottle).
- Click the Calculate button.
Verify the prices of various products on the NTO Store #226 order page:
- The receipt value for the Empower Cola Sales Unit must be $178.80 ($17.88* 10).
- The receipt value for the Empower Cola Consumer Unit must be $17.88 (($17.88/12)*12).
- The receipt value for the Empower Cherry Sales Unit must be $238.80 (23.88*10).
- The receipt value for the Empower Cherry Consumer Unit must be $23.88 ((23.88/12)*12).
- The receipt value for the Empower Lemon Sales Unit must be $214.80 (21.48*10) and the Consumer Unit must be $25.78 ((21.48 / 10) * 12).
- The gross total value must be $699.94, which is the sum of all receipt values.
- Post sync, the order is available in the order overview on the CG Cloud desktop app. The Pricing Log File is shown in the Pricing Information section on Advanced Order with detailed pricing information.
Calculate Freight Surcharge for Orders
Apply a freight surcharge for an order based on the total weight of products using From scales for NTO Store #226 with base price calculation in place. The order has 1500 kg of standard products, 200 kg of returns, and 100 kg of free items.
Scale Information:
- For the first scale, from a scale of 0 Kg, regardless of the customer priority, a freight surcharge of $4.99 is applied.
- From a scale rate of 1000 kg, priority A customers must pay a freight surcharge of $4.99, priority B customers must pay $5.99, and priority C customers and customers without priority must pay $6.99.3.
- From a scale of 5000 Kg, priority A customers must pay a $4.99 surcharge, and the remaining customers must pay a $19.99 surcharge.
| Scale | Scale Value (weight in kg) | Rate | Priority(Account_Extension__c.Priority__c) |
|---|---|---|---|
| 1 | 0 | $4.99 | A - Priority B - Priority C - Priority Blank |
| 2 | 1000 | $4.99 | A - Priority |
| $5.99 | B - Priority | ||
| $6.99 | C - Priority Blank |
||
| 3 | 5000 | $4.99 | A - Priority |
| $19.99 | B - Priority C - Priority Blank |
Configure PPP on the CG Cloud desktop app for Freight Surcharge Calculation
-
Create a key attribute as Customer Priority using
Account_Extension__c.Priority__c with these configurations:
- Select Object as Customer.
- Select Mobility Entity as Customer.
- Select Mobility Attribute as Priority.
-
Check if the attribute is available for the pricing engine:
-
Check the data source
DsComplex_Pricing_sfin the modeler. -
Check the query
CndCpReadCustomerAttributes. - The attribute is available with the name set as Priority.
-
Check the data source
- Create a key type as My Customer Priority with Distribution Category as To All since the customer attribute and not the customer is used in the key type.
- Create a search strategy as My Freight Surcharge Search and don’t set the search strategy active during creation. Otherwise, you get a validation error that there exist no search steps.
- Add a search step and select Key Type as My Customer Priority.
- Activate the search strategy in step 4 (via the Details tab).
-
Create a pricing condition template as My Freight
Surcharge and select:
- Active as true.
- Meta Type as Flat Rate because the surcharge is added one time.
- Condition Level as Order Header since the condition is added per order and not per order item.
- Base as Weight because product weight is used to determine the scale range.
- Scale Type as From Scale.
-
Add a calculation step to My Price Calculation schema (see step 8 in use case
1) and select:
- Pricing Condition Template as My Freight Surcharge.
- Item Meta Rule as Delivery (excl. Free Item).
-
Set the Item Meta Rules in the respective Order Item Templates:
- For the standard order item template, set the Delivery (excl. Free Item) field as Add in the Item Meta Rule section.
- Set the Delivery (excl. Free Item) field as Neutral in the Item Meta Rule section for returns.
- Set the Delivery (excl. Free Item) field as Neutral in the Item Meta Rule section for free items.
-
Set the Unit of Measure for Empower Cola Cherry
0.33 L Can and configure:
- The Consumer Unit with weight definition as 1.05 kg.
- One Sales Unit has 12 Consumer Units.
- Set the NTO Store #226 as B -Priority customer in Customer Extension.
Import and Validate Pricing Conditions
Create an Order and Calculate Price on the CG Cloud Offline mobile app
- To sync new configurations and conditions, restart the mobile app.
- Create an order for *NTO Store #226.
- Modify the quantity as 100 Sales Units for Empower Cola Cherry 0.33 L Can.
- Click the Calculate button.
- Navigate to the Header page and click Preview.
On the order PDF, a freight surcharge of $5.99 is applied to the order. The 100 Sales Units of Empower Cola Cherry 0.33 L Can are converted to 1200 (12*100) Consumer Units as the weight of the Sales Unit isn’t set and the total weight is calculated as 1260 Kg. Based on the scale conditions, for a weight of 1260 Kg, the surcharge value of $5.99 is applied.

