Pricing Methods
The Microsoft Dynamics CRM application uses the productpricelevel.pricingmethodcode attribute for determining prices. The value of this attribute affects the following:
- How the price for the product is determined for each unit of measure that is defined for that product.
- What attributes are required when you create or update a product price level and its associated product.
The formulas that are used for each value and the attributes that are required by each value are shown in the following table of pricingmethodcode attribute values.
Drop-down list value
and equivalent
PriceMethod value | Description and required attributes |
| Currency Amount
CurrencyAmount = 1
| The price is specified for each unit of measure for each product.
|
| Percent of List
PercentListPrice = 2
| The price is calculated based on the manufacturer's or distributor's list price.
calculated price = list price x percentage
For each unit of measure for each product, you must enter data in the following attributes:
|
| Percent Markup - Current Cost
MarkupCurrentCost = 3
| The price is calculated as a percentage of your current cost for the item.
calculated price = current cost x
100% + percentage
For each unit of measure for each product, you must enter data in the following attributes:
|
| Percent Margin - Current Cost
MarginCurrentCost =4
| The price is based on the profit percentage you want to achieve and your current cost for the item.
calculated price = current cost +
[(current cost x percentage)/
(100% - percentage)]
For each unit of measure for each product, you must enter data in the following attributes:
|
| Percent Markup - Standard Cost
MarkupStandardCost = 5
| The price is calculated as a percentage of the standard cost of the item.
calculated price = standard cost x
100% + percentage
Because the standard cost is updated periodically, the standard cost amount in this equation is an average and will not always be the same as the amount you paid most recently for the item.
For each unit of measure for each product, you must enter data in the following attributes:
|
| Percent Margin - Standard Cost
MarginStandardCost = 6
| The price is based on the profit percentage you want to achieve and the standard cost of the item:
calculated price = standard cost +
[(standard cost x percentage)/
(100% - percentage)]
Because the standard cost is updated periodically, the standard cost amount in this equation is an average and will not always be the same as the amount you paid most recently for the item.
For each unit of measure for each product, you must enter data in the following attributes:
|
To set or test the pricingmethodcode value, you can use the PriceMethod class. To use this class, you can add the helper code file enums.cs to your project. For more information, see CrmHelpers Classes.
To set the values for the pricingmethodcode attribute and the other product price level entity attributes referred to in the previous table, use the Update method, passing an instance of the productpricelevel class.
To set the values for the product attributes referred to in the previous table; use the methods in the product class.
See Also
Other Resources
© 2009 Microsoft Corporation. All rights reserved.