Fields documentation for PriceRegulation

NameTypeSummeryRemarks
ApplyRegulationPriceRegulationApplyConditionEnumThe price regulation always applies or only if a condition is met.
DirectionPriceRegulationDirectionEnumIndicates if the priceRegulation regulates the price up or down.
DiscountArticleArticleListItemAn article that the priceRegulation must be used on the invoice. This can be null. If it is null the priceRegulation is subtracted from the referring articles price.
EditStateEditStateEnumEditState is used to keep track of the edit state of items in list/collection properties. The field is initialized to None. For inbounded DTOs derived from this value is overwritten by the correct value from the service consumer doing deserialization.
EntityTypeInt32This property is used to distinguish datacontract classes that serves as a mapper for more than 1 underlying model class. An example of such a class could be: EmployeeOrGroupListItem. The EmployeeOrGroupListItem datacontract class maps both the Employee and Group model class. An employee and group can share the same IDs and it thus becomes impossible to distinguish the two if they are mapped into the same class. This is solved by overriding this property in the child class. In this case the EmployeeOrGroupListItem class. The EmployeeOrGroupListItem class will have its own "Type" enum property to distinguish what it has mapped. This existing Type property is then mapped into the base class' EntityType property. The client framework will then be able to automatically distinguish the enitities from eachother.
ExternalIdInt32Temporary server assigned unique Id for each datacontract object created in the server without persistece.. this property will use the fix the references of the all cloned objects.
IdInt32OpenAccess identity property.
InvoiceLineOptionPriceRegulationInvoiceLineOptionEnumUse existing invoice line or a separate one.
MinMaxCountUnitMinMaxIf ApplyRegulation = Conditional then this property must be filled out and VolumeCount must be 0. The minimum and maximum count of units that this priceRegulation applies to. This can be time unit for rental articles and regular units for other articles.
PurchaseDiscountPercentageDoubleThe discounted amount from the purchase price in the available currencies.
PurchasePricesPrice[]The discounted amount from the purchase price in the available currencies.
SalesDiscountPercentageDoubleThe discounted amount from the sales price in the available currencies.
SalesPricesPrice[]The discounted amount from the sales price in the available currencies.
TypePriceRegulationTypeEnumThe type of the priceRegulation. See also PriceRegulationTypeEnum.
VersionInt32OpenAccess concurrency version property.
VolumeCountInt32If ApplyRegulation = ConditionalVolume then this property must be filled with a value greater than 0 and MinMaxCount must be null.