Hierarchical Price Books Setup
Prerequisites
To setup and use Hierarchical Price Books, you need to:
Have these user licenses | Have these permissions | Complete these tasks and review these topics before continuing |
---|---|---|
|
To use hierarchical price books on:
Jobs | Tickets | Quotes |
---|---|---|
Use any |
You must use one of the following release channels:
|
Step-by-Step Guides
To set up the Hierarchical Price Books Feature, complete each of these sections in order:
Configure FieldFX Objects
-
From Setup, enter
object
in the Quick Find box, then select Objects. -
Enable the following checkboxes and disable these rules:
-
Continue with Update Translation Files.
Enable Job Object Extended Pricing Checkbox
Add an Enable Extended Pricing checkbox to the Job object.
-
Click Job.
-
Under Custom Fields & Relationships, click New.
-
Select Formula.
-
Click Next.
-
In Field Label, enter "Enable Extended Pricing".
-
Under Formula Return Type, select "Checkbox".
-
Click Next.
-
In Enable Extended Pricing (Checkbox), enter the following formula:
NOT(ISBLANK(FX5__Price_Book__r.FX5__Parent_Price_Book__c))
Use this formula to ensure that Enable Extended Pricing gets selected automatically for a job when its price book has a designated Parent Price Book.
-
Click Next.
-
Click Visible twice.
-
Click Next.
-
Select the page layouts on which to include the checkbox.
-
Click Save.
-
Grant permissions for the checkbox.
-
Continue with Enable Quote Object Extended Pricing Checkbox.
Enable Quote Object Extended Pricing Checkbox
Add an Enable Extended Pricing checkbox to the Quote object:
-
On the Objects list, click Quote.
-
Under Custom Fields & Relationships, click New.
-
Select Formula.
-
Click Next.
-
In Field Label, enter "Enable Extended Pricing".
-
Under Formula Return Type, select "Checkbox".
-
Click Next.
-
In Enable Extended Pricing (Checkbox), enter the following formula:
NOT(ISBLANK(FX5__Price_Book__r.FX5__Parent_Price_Book__c))
Use this formula to ensure that Enable Extended Pricing gets selected automatically for a quote when its price book has a designated Parent Price Book.
-
Click Next.
-
Click Visible twice.
-
Click Next.
-
Select the page layouts on which to include the checkbox.
-
Click Save.
-
Grant permissions for the checkbox.
-
Continue with Disable the Job Price Book Validation Rule.
Disable the Job Price Book Validation Rule
Disable the JobPriceBook validation rule:
-
In the Objects list, click Ticket Item.
-
Under Validation Rules, click Edit next to JobPriceBook.
-
Deselect Active.
-
Click Save.
-
Continue with Run Enable Extended Pricing Checkboxes Scripts.
Run Enable Extended Pricing Checkboxes Scripts
Run scripts for the Enable Extended Pricing checkboxes:
-
Select Utilities | Apex Execute.
-
Enter the following script:
System.debug(FX5.FXWorkerLauncher.DoWork('FX5.CustomFieldInfoHandler', null));
-
Click Execute.
-
Continue with Update Translation Files.
Update Translation Files
Add the following keys to static resources used to translate user interface text:
"Console_Flyout_ExtendedPriceBookTableTitle": "Extended Price Book Items",
"QuoteItems_ShowMoreFromExtendedPriceBook": "Show more from extended price book",
"TicketItems_ShowMoreFromExtendedPriceBook": "Show more from extended price book",
Update Price Book Items
-
Open a new tab in your browser
-
Select Utilities | Apex Execute
-
Enter the following script:
FX5.FXBatchableLauncher.Run('FX5.CatalogItemPriceBookIndexBatchable');
-
Click Execute.
-
Close Workbench.
-
Move back to FieldFX Back Office.
-
From Setup, enter
apex jobs
in the Quick Find box, then select Apex Jobs. -
Monitor the status of the CatalogItemPriceBookBatcher jobs and only proceed once the final job processes.
-
Continue with Add a Price Book Hierarchy.
Add a Price Book Hierarchy
-
Open the Price Books tab.
Open the Price Books tab that uses the following icon:
-
Open a price book you want as the lowest in the hierarchy.
-
Click Edit.
-
In Parent Price Book, select the price book under which to place this price book.
-
Click Save.
-
Open a price book you want as the next level in the hierarchy.
-
Click Edit.
-
In Parent Price Book, select the price book under which to place this price book.
-
Click Save.
-
Repeat these steps for other price books.
-
Continue with Disable Certain Validation Rules.
Disable Certain Validation Rules
Disable validation rules that do not take into account price book hierarchies, like the managed QuotePriceBook validation rule on the Quote Item object.
To disable that rule, follow these steps then repeat for any custom validation rules that don’t account for price book hierarchies.
-
From Setup, select the Object Manager.
-
Select the Quote Item object.
-
Select Validation Rules from the left panel.
-
Select QuotePricebook from the list.
-
Select Edit.
-
Deselect the Active checkbox.
-
Click Save.