📚 SAP Business One SDK Help

SpecialPrices Object Members
See Also  Overview 

Public Methods

Public Method AddAdds a record to the object table in SAP Business One company database.
Public Method GetAsXMLReturns the object from XML data, which is stored as string in a buffer.
Public Method GetByKeyRetrieves and sets the values of the object's properties by the object's absolute key from the Company database.
Public Method GetByKeyDiscountsRetrieves the discounts for a specific item that apply to all business partners.

To retrieve discounts for a specific business partner, use the GetByKey method. 

Public Method RemoveDeletes a record from the object table.
Public Method SaveToFileSave the object to a file as XML data.
Public Method SaveXMLSaves the object data to XML formatted data.
Public Method UpdateUpdates the object data in the company database.

Public Properties

Public Property AutoUpdateSpecifies whether to change the special price when the price list is updated.

Field name: AutoUpdt.

Public Property BrowserReturns the DataBrowser object.
Public Property CardCodeSets or returns the business partner to which this discount applies. If blank, the discount applies to all business partners.

Field name: CardCode.

Length: 15 characters.

This is a foreign key to the BusinessPartners object.

Public Property CurrencySets or returns the currency of the discount. The currency must match the currency of the specified price list.

Field name: Currency.

Length: 3 characters.

Public Property DiscountPercentSets or returns the discount percentage. This property is date-dependent.

Field name: Discount.

Public Property ItemCodeSets or returns the item code to which this discount applies. The item code must be unique.

Field name: ItemCode.

Length: 20 characters.

This is a foreign key to the Items object.

Public Property PriceSets or returns the special price of the item.

Field name: Price.

Public Property PriceListNumSets or returns the price list.

Field name: ListNum.

This is a foreign key to the PriceLists object.

Public Property SourcePriceproperty SourcePrice
Public Property SpecialPricesDataAreasReturns the SpecialPricesDataAreas child object.
Public Property UserFieldsproperty UserFields
Public Property Validproperty Valid
Public Property ValidFromproperty ValidFrom
Public Property ValidToproperty ValidTo

See Also