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:

  1. From the application-level menu, choose View > Site Map > Pricing Administration >Pricing Model Manager.

    The Pricing Model Manager list appears.

  2. In the Pricing Model Manager list, select the pricing model in which you want to create a new aggregate type pricing factor.
  3. 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.
  4. Click the Pricing Factor Designer view tab.
  5. In the Pricing Factor Designer list, click New.
  6. In the new record in the Pricing Factor Designer list, enter the information described in Table 28 in Creating Pricing Models and Pricing Factors:
    1. In the Type field, select Script-Based.
    2. 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.
  7. 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:

    n Base = List
    n Base = Purchase
    n Base = Cost
    n Base = MSRP
    n Current Price

    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:

    n "0" Unknown
    n "1" % Discount
    n "2" Markup Amount
    n "3" % Markup
    n "4" Price Override
    n "5" Multiplicative Amount
    n "6" Power (Target, Price, Power)
    n "7" Round (Current, Decimal Places)
    n "8" Discount Amount

    For 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.

Pricing Administration Guide