Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Pricing Administration Guide > Script-Based Pricing Factors > The Process of Implementing Script-Based Pricing Factors >
Creating the Script-Based Pricing Factor
This procedure assumes that you are familiar with the overall process for creating and applying a pricing model, described in The Process of Creating and Applying a Pricing Model.
After adding the script to the Business Service Scripts list, you can create the script-based pricing factor.
You must use the Name field of the script-based pricing factor to identify the corresponding script. The value in the Name field must be in the following format, ScriptName::ScriptMethod, where the ScriptName is the script name you entered in the Name field in Step 2.
NOTE: The script data may override some data entered in the Pricing Factors form, as indicated in Table 38.
To create a new pricing factor:
- From the application-level menu, choose View > Site Map > Pricing Administration >Pricing Model Manager.
The Pricing Model Manager list appears.
- In the Pricing Model Manager list, select the pricing model in which you want to create a new aggregate type pricing factor.
- If the Locked field of this pricing model record does not already have a check mark in it, click it to add the check mark in order to lock it.
- Click the Pricing Factor Designer view tab.
- In the Pricing Factor Designer list, click New.
- In the new record in the Pricing Factor Designer list, enter the information described in Table 28 in Creating Pricing Models and Pricing Factors:
- In the Type field, select Script-Based.
- In the Name field, specify the script name using the ScriptName::ScriptMethod format, where the ScriptName and ScriptMethod character strings are exactly as specified in the forms in the Business Service Administration view.
- In the Pricing Factors form, enter the information described in Table 38.
Table 38. Pricer Factor Form Fields Pricer Factor Form Fields Entry Name Replace the system-generated name with a unique, meaningful name. Target Price Choose the Target Price from the following:Can be specified in either the applet or the script: a value passed from the script overrides the value specified in the applet. Type of Calculation Select a type of calculation, which is passed to the script as a string using the following codes:
"0"
Unknown"1"
% Discount"2"
Markup Amount"3"
% Markup"4"
Price Override"5"
Multiplicative Amount"6"
Power (Target, Price, Power)"7"
Round (Current, Decimal Places)"8"
Discount AmountFor example, if you select % Discount as the Type of Calculation, the script receives the string value"1"
.Can be specified in either the applet or the script: a value passed from the script overrides the value specified in the applet. Adjustment Value Specify the adjustment value.Can be specified in either the applet or the script: a value passed from the script overrides the value specified in the applet. Active Click the check box to activate or deactivate the pricing factor. Next Factor When True If you are using the Pricing Factor Flow Chart Designer, this read-only field displays the factor to be executed next if this factor evaluates as true. For more information, see Using the Pricing Factor Flow Chart Designer. Next Factor When False If you are using the Pricing Factor Flow Chart Designer, this read-only field displays the factor to be executed next if this factor evaluates as false. For more information, see Using the Pricing Factor Flow Chart Designer. Comments Optionally, enter comments about this pricing factor.
Bookshelf Home | Contents | Index | Search | PDF | ![]() ![]() ![]() ![]() |
Pricing Administration Guide Published: 18 April 2003 |