Add | Adds a record to the object table in SAP Business One company database. |
GetAsXML | Returns the object from XML data, which is stored as string in a buffer. |
GetByKey | Retrieves and sets the values of the object's properties by the object's absolute key from the Company database. |
GetByKeyDiscounts | Retrieves the discounts for a specific item that apply to all business partners.
To retrieve discounts for a specific business partner, use the GetByKey method. |
Remove | Deletes a record from the object table. |
SaveToFile | Save the object to a file as XML data. |
SaveXML | Saves the object data to XML formatted data. |
Update | Updates the object data in the company database. |
AutoUpdate | Specifies whether to change the special price when the price list is updated.
Field name: AutoUpdt. |
Browser | Returns the DataBrowser object. |
CardCode | Sets 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. |
Currency | Sets or returns the currency of the discount. The currency must match the currency of the specified price list.
Field name: Currency. Length: 3 characters. |
DiscountPercent | Sets or returns the discount percentage. This property is date-dependent.
Field name: Discount. |
ItemCode | Sets 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. |
Price | Sets or returns the special price of the item.
Field name: Price. |
PriceListNum | Sets or returns the price list.
Field name: ListNum. This is a foreign key to the PriceLists object. |
SourcePrice | property SourcePrice |
SpecialPricesDataAreas | Returns the SpecialPricesDataAreas child object. |
UserFields | property UserFields |
Valid | property Valid |
ValidFrom | property ValidFrom |
ValidTo | property ValidTo |