Pricing Engine
Apex action is requested from the SPM that calculates the price and populates the required fields on Work Order Line Item, Product Consumed, and Expense records. The Entitlement engine populates the following fields on Work Order and Entitlement verification history object.
Contract Line
Entitled Services
Price Calculation
The following list explains how the price is calculated for different scenarios.
Entitled Price = Entitled Price from Contract Price Line Item (CPLI)
or
Entitled Price = List Price - (Entitled Discount/100 * List Price) for discounts
or
Entitled Price = List Price + (Surcharge/100 * List Price) for surcharge
Unit Price = Entitled Price
Total Price = Unit Price * Quantity. This is calculated by SFDC.
Example
List Price as per Pricebook
Entitled Price
Entitled Discount
Surcharge
Unit Price
Quantity
Total Price
$200
$100
$100
2
$200
$300
(300 -(20/100*300)) = $240
20%
$240
1
$240
$350
(350 +(30/100*300)) = $440
30%
$440
2
$880
NA
$100
$100
1
$100
* 
The WO pricing engine considers Work Order currency for Expense lines. To restrict users from selecting different currencies, admins can have a validation rule on the Expense object.
Total Overall Price Calculation
The Total Overall Price field is added in the Work Order object to represent the sum of total price across Product Consumed, Work Order Line Item, and Expense.
This formula field gives the result as a sum of the Total Parts Price, Total Price (standard field), and Total Expense Price fields.
Work Order Price Fields Calculation
Two fields, Total Expense Price and Total List Price are used in the parent flow A360 - Calculate Work Order Price Fields when the Work Order status is Completed.
The following events trigger the parent flow:
1. Executes when Work Order’s Status is Completed.
2. Executes after create and update of Work Order.
3. Updates the Total Price of Product Consumed to Total Parts Price on Work Order.
4. Updates the Total Price of Expense to Total Expense Price on Work Order.
5. Updates Total List Price on Work Order with List Price * Quantity of WOLI and PC + Amount * Quantity of Expense. That is Total List Price = List Price * Quantity of PC + List Price * Quantity of WOLI + Amount * Quantity of Expense.
Related Topic
Was this helpful?