Table of Contents

KVSKBASalesPriceaLineDiscBuff

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Fields

Name Type Note
Code Code[20]
Sales Code Code[20]
Currency Code Code[10]
Starting Date Date
Line Discount % Decimal
Unit Price Decimal
Price Includes VAT Boolean
Allow Invoice Disc. Boolean
VAT Bus. Posting Gr. (Price) Code[20]
Sales Type Enum (KVSKBAPriceDiscSalesType)
Minimum Quantity Decimal
Ending Date Date
Type Option OptionMembers: Item,Item Disc. Group,,,,,Item Price Group
Line Type Option OptionMembers: ,KVSKBASalesLineDiscount,KVSKBASalesPrice
Loaded Item No. Code[20]
Loaded Disc. Group Code[20]
Loaded Customer No. Code[20]
Loaded Price Group Code[20]
Unit of Measure Code Code[10]
Variant Code Code[10]
Allow Line Disc. Boolean
Price Unit Decimal
Unit Price Price Unit Decimal
Responsibility Center Code[10]
Sales Condition No. Code[20]
Sales Order Type Code[10]
Comment Text[80]

Procedures

LoadDataForItem(Record Item) :

Summary: Loads sales price and line discount data for the specified item into the buffer table.

procedure LoadDataForItem(Item: Record "Item"): 

Parameters:

  • Item: Record Item - The item for which to load prices and discounts.

Remarks: Loads sales prices for the item and its price group, as well as sales line discounts for the item and its discount group. Existing records in the buffer are cleared before loading. Raises OnAfterLoadDataForItem after loading.

LoadDataForCustomer(Record Customer) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Loads sales price and line discount data for the specified customer into the buffer table.

[Obsolete('This procedure is only supported,as long as the object exists', '24.0')]
procedure LoadDataForCustomer(Customer: Record "Customer"): 

Parameters:

  • Customer: Record Customer - The customer for which to load prices and discounts.

Remarks: Loads sales prices and line discounts for the customer, all customers, and their price/discount groups, including campaign prices. Existing records in the buffer are cleared before loading. Raises OnAfterLoadDataForCustomer after loading. This procedure is obsolete and will be removed in a future version.

Events

OnAfterLoadDataForCustomer(Record KVSKBASalesPriceaLineDiscBuff, Record Customer) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after loading sales data for a customer.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterLoadDataForCustomer(var KVSKBASalesPriceaLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; Customer: Record "Customer"): 

Parameters:

  • KVSKBASalesPriceaLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer table with loaded data.
  • Customer: Record Customer - The customer for which data was loaded.

Remarks: This event is obsolete and no longer supported as long as the object exists.

OnAfterLoadDataForItem(Record KVSKBASalesPriceaLineDiscBuff, Record Item) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after loading sales data for an item.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterLoadDataForItem(var KVSKBASalesPriceaLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; Item: Record "Item"): 

Parameters:

  • KVSKBASalesPriceaLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer table with loaded data.
  • Item: Record Item - The item for which data was loaded.

Remarks: This event is obsolete and no longer supported as long as the object exists.

OnAfterItemHasLines(Record Item, Boolean, Boolean) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after checking if an item has price or discount lines.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterItemHasLines(Item: Record "Item"; Result: Boolean; IsHandled: Boolean): 

Parameters:

  • Item: Record Item - The item that was checked.
  • Result: Boolean - The result indicating whether the item has lines.
  • IsHandled: Boolean - If set to TRUE, the Result value will be used as the return value.

Remarks: This event is obsolete and no longer supported as long as the object exists. If IsHandled is set to TRUE, the Result value will be used as the return value.

OnAfterSetFiltersOnSalesPrice(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesPrice) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after setting filters on the sales price record for an item.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersOnSalesPrice(var KVSKBASalesPriceaLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; var KVSKBASalesPrice: Record "KVSKBASalesPrice"): 

Parameters:

  • KVSKBASalesPriceaLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record providing filter context.
  • KVSKBASalesPrice: VAR Record KVSKBASalesPrice - The sales price record with applied filters.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to add additional filters to the sales price record.

OnAfterSetFiltersOnSalesLineDiscountItem(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesLineDiscount) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after setting filters on the sales line discount record for an item.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersOnSalesLineDiscountItem(var KVSKBASalesPriceaLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; var KVSKBASalesLineDiscount: Record "KVSKBASalesLineDiscount"): 

Parameters:

  • KVSKBASalesPriceaLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record providing filter context.
  • KVSKBASalesLineDiscount: VAR Record KVSKBASalesLineDiscount - The sales line discount record with applied filters.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to add additional filters to the sales line discount record for items.

OnAfterSetFiltersOnSalesPriceForItemGroup(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesPrice) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after setting filters on the sales price record for an item price group.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersOnSalesPriceForItemGroup(var KVSKBASalesPriceaLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; var KVSKBASalesPrice: Record "KVSKBASalesPrice"): 

Parameters:

  • KVSKBASalesPriceaLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record providing filter context.
  • KVSKBASalesPrice: VAR Record KVSKBASalesPrice - The sales price record with applied filters.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to add additional filters to the sales price record for item price groups.

OnAfterSetFiltersOnSalesLineDiscountItemGroup(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesLineDiscount) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after setting filters on the sales line discount record for an item discount group.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterSetFiltersOnSalesLineDiscountItemGroup(var KVSKBASalesPriceaLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; var KVSKBASalesLineDiscount: Record "KVSKBASalesLineDiscount"): 

Parameters:

  • KVSKBASalesPriceaLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record providing filter context.
  • KVSKBASalesLineDiscount: VAR Record KVSKBASalesLineDiscount - The sales line discount record with applied filters.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to add additional filters to the sales line discount record for item discount groups.

OnAfterVATPostingSetupGet(Record VAT Posting Setup) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised after retrieving the VAT posting setup during price update.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnAfterVATPostingSetupGet(var VATPostingSetup: Record "VAT Posting Setup"): 

Parameters:

  • VATPostingSetup: VAR Record "VAT Posting Setup" - The retrieved VAT posting setup record.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to modify the VAT posting setup before it is used for price recalculation.

OnBeforeDeleteOldRecordVersion(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesPriceaLineDiscBuff, Boolean) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised before deleting the old record version when a record is modified or deleted.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteOldRecordVersion(var SalesPriceAndLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; xSalesPriceAndLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; var IsHandled: Boolean): 

Parameters:

  • SalesPriceAndLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The current record being processed.
  • xSalesPriceAndLineDiscBuff: Record KVSKBASalesPriceaLineDiscBuff - The previous version of the record.
  • IsHandled: VAR Boolean - If set to TRUE, the default deletion logic will be skipped.

Remarks: This event is obsolete and no longer supported as long as the object exists. If IsHandled is set to TRUE, the original code will be skipped.

OnLoadSalesLineDiscountOnBeforeInsert(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesLineDiscount) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised before inserting a sales line discount record into the buffer.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnLoadSalesLineDiscountOnBeforeInsert(var SalesPriceAndLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; SalesLineDiscount: Record "KVSKBASalesLineDiscount"): 

Parameters:

  • SalesPriceAndLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record about to be inserted.
  • SalesLineDiscount: Record KVSKBASalesLineDiscount - The source sales line discount record.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to modify the buffer record before it is inserted.

OnLoadSalesPriceOnBeforeInsert(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesPrice) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised before inserting a sales price record into the buffer.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnLoadSalesPriceOnBeforeInsert(var SalesPriceAndLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; SalesPrice: Record "KVSKBASalesPrice"): 

Parameters:

  • SalesPriceAndLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record about to be inserted.
  • SalesPrice: Record KVSKBASalesPrice - The source sales price record.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to modify the buffer record before it is inserted.

OnLoadSalesPriceOnBeforeSalesPriceTypeCaseElse(Record KVSKBASalesPriceaLineDiscBuff, Record KVSKBASalesPrice, Boolean) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised when the sales price type does not match any known type during loading.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnLoadSalesPriceOnBeforeSalesPriceTypeCaseElse(var SalesPriceAndLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"; SalesPrice: Record "KVSKBASalesPrice"; var Ishandled: Boolean): 

Parameters:

  • SalesPriceAndLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record being loaded.
  • SalesPrice: Record KVSKBASalesPrice - The sales price record with the unrecognized type.
  • Ishandled: VAR Boolean - If set to TRUE, the default error for unrecognized types will be skipped.

Remarks: This event is obsolete and no longer supported as long as the object exists. If IsHandled is set to TRUE, the original error will be skipped.

OnValidateSalesTypeOnBeforeUpdateValuesFromItem(Record KVSKBASalesPriceaLineDiscBuff) :

OBSOLETE

This Element will be removed or changed with a future Version of the App.

Summary: Integration event that is raised before updating values from the item during sales type validation.

[Obsolete('This event is no longer supported,as long as the object exists', '24.0')]
[IntegrationEvent(false, false)]
local procedure OnValidateSalesTypeOnBeforeUpdateValuesFromItem(var SalesPriceAndLineDiscBuff: Record "KVSKBASalesPriceaLineDiscBuff"): 

Parameters:

  • SalesPriceAndLineDiscBuff: VAR Record KVSKBASalesPriceaLineDiscBuff - The buffer record being validated.

Remarks: This event is obsolete and no longer supported as long as the object exists. Allows subscribers to perform actions before the item values are updated based on the sales type.