Click or drag to resize

Discount Class

Price reduction made from the list price of a product or service based on the quantity purchased.
Inheritance Hierarchy
SystemObject
  Entity
    Crm.MSCrmServiceDiscount

Namespace: Crm.MSCrmService
Assembly: Scripting (in Scripting.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public class Discount : Entity, INotifyPropertyChanging, 
	INotifyPropertyChanged

The Discount type exposes the following members.

Constructors
 NameDescription
Public methodDiscount Default Constructor.
Top
Properties
 NameDescription
Public propertyAmount Amount of the discount, specified either as a percentage or as a monetary amount.
Public propertyAmount_Base Shows the Amount field converted to the system's default base currency, if specified as a fixed amount. The calculation uses the exchange rate specified in the Currencies area.
Public propertyAttributes
(Inherited from Entity)
Public propertyCreatedBy Unique identifier of the user who created the discount.
Public propertyCreatedOn Date and time when the discount was created.
Public propertyCreatedOnBehalfBy Unique identifier of the delegate user who created the discount.
Public propertyDiscount_AsyncOperations 1:N Discount_AsyncOperations
Public propertyDiscount_BulkDeleteFailures 1:N Discount_BulkDeleteFailures
Public propertyDiscount_ProcessSessions 1:N Discount_ProcessSessions
Public propertyDiscount_SyncErrors 1:N Discount_SyncErrors
Public propertydiscount_type_discounts N:1 discount_type_discounts
Public propertyDiscountId Unique identifier of the discount.
Public propertyDiscountTypeId Unique identifier of the discount list associated with the discount.
Public propertyEntityState
(Inherited from Entity)
Public propertyExchangeRate Shows the conversion rate of the record's currency. The exchange rate is used to convert all money fields in the record from the local currency to the system's default currency.
Public propertyExtensionData
(Inherited from Entity)
Public propertyFormattedValues
(Inherited from Entity)
Public propertyHasLazyFileAttribute
(Inherited from Entity)
Public propertyHighQuantity Upper boundary for the quantity range to which a particular discount can be applied.
Public propertyId
(Overrides Entity.Id)
Public propertyImportSequenceNumber Unique identifier of the data import or data migration that created this record.
Public propertyIsAmountType Specifies whether the discount is specified as a monetary amount or a percentage.
Public propertyItem
(Inherited from Entity)
Public propertyKeyAttributes
(Inherited from Entity)
Public propertyLazyFileAttributeKey
(Inherited from Entity)
Public propertyLazyFileAttributeValue
(Inherited from Entity)
Public propertyLazyFileSizeAttributeKey
(Inherited from Entity)
Public propertyLazyFileSizeAttributeValue
(Inherited from Entity)
Public propertylk_discount_createdonbehalfby N:1 lk_discount_createdonbehalfby
Public propertylk_discount_modifiedonbehalfby N:1 lk_discount_modifiedonbehalfby
Public propertylk_discountbase_createdby N:1 lk_discountbase_createdby
Public propertylk_discountbase_modifiedby N:1 lk_discountbase_modifiedby
Public propertyLogicalName
(Inherited from Entity)
Public propertyLowQuantity Lower boundary for the quantity range to which a particular discount is applied.
Public propertyModifiedBy Unique identifier of the user who last modified the discount.
Public propertyModifiedOn Date and time when the discount was last modified.
Public propertyModifiedOnBehalfBy Unique identifier of the delegate user who last modified the discount.
Public propertyOrganizationId Unique identifier of the organization associated with the discount.
Public propertyOverriddenCreatedOn Date and time that the record was migrated.
Public propertyPercentage Percentage discount value.
Public propertyRelatedEntities
(Inherited from Entity)
Public propertyRowVersion
(Inherited from Entity)
Public propertyStatusCodeObsolete.
Select the discount's status.
Public propertytransactioncurrency_discount N:1 transactioncurrency_discount
Public propertyTransactionCurrencyId Choose the local currency for the record to make sure budgets are reported in the correct currency.
Public propertyuserentityinstancedata_discount 1:N userentityinstancedata_discount
Public propertyVersionNumber Version number of the discount.
Top
Methods
 NameDescription
Public methodContains
(Inherited from Entity)
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodGetAttributeValue``1
(Inherited from Entity)
Protected methodGetFormattedAttributeValue
(Inherited from Entity)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Protected methodGetRelatedEntities``1
(Inherited from Entity)
Protected methodGetRelatedEntity``1
(Inherited from Entity)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Protected methodSetAttributeValue
(Inherited from Entity)
Protected methodSetRelatedEntities``1
(Inherited from Entity)
Protected methodSetRelatedEntity``1
(Inherited from Entity)
Public methodToEntity``1
(Inherited from Entity)
Public methodToEntityReference
(Inherited from Entity)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Public methodTryGetAttributeValue``1
(Inherited from Entity)
Top
Events
Fields
See Also