Labor Pricing Calculation with Work Order Assigned Pricebook
The code snippet Code011: Advanced Get Price can retrieve pricing from a specified Service Pricebook that is defined via a custom field on the Work Order. This extends the existing Get Price logic, which previously could only use the org-wide service Pricebook if no Service Contract with a service Pricebook was associated with the Work Order. With this enhancement, pricing can now be generated based on a custom lookup field on the Work Order record, where a service Pricebook is defined. To enable this functionality, the administrator must configure a custom field and define a global setting in the ServiceMax Setup.
To enable Get Price for the price book in a custom field on the Work Order:
1. Create a custom service pricebook of the type lookup field in the Work Order object.
|
You can skip this step if the custom lookup field is already created.
|
2. Edit the global setting
SET022 - Get Price to Acknowledge Custom Lookup for Service Pricebook on WO (Module: Work Order; Sub-Module: Create Work Order Lines VF).
3. Update the setting SET022 with the API name of the custom service pricebook lookup field configured in step 1.
4. Click Save.