Table of Contents

KVSKBASalesPrices

OBSOLETE

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

Events

OnGetSalesTypeFilterOnCase(Record KVSKBASalesPrice, Enum KVSKBASalesPriceTypeFilter, Boolean) :

OBSOLETE

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

Summary: Integration event raised when the sales type filter value cannot be matched by any standard case in GetSalesTypeFilter.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnGetSalesTypeFilterOnCase(KVSKBASalesPrice: Record "KVSKBASalesPrice"; var ResultEnum: Enum "KVSKBASalesPriceTypeFilter"; var IsHandled: Boolean): 

Parameters:

  • KVSKBASalesPrice: The current sales price record containing the active filter.
  • ResultEnum: The resolved sales price type filter enum value to return to the caller.
  • IsHandled: Set to true to indicate the event has been handled and suppress default processing.

Remarks: Subscribe to this event to handle custom or extended sales type filter values. Assign ResultEnum to the desired filter value and set IsHandled to true to prevent the default fallthrough.

OnLookupCodeFilterCtrlOnBeforeSalesPriceTypeCaseElse(Record KVSKBASalesPrice, Text, Boolean) :

OBSOLETE

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

Summary: Integration event raised before the case-else branch in the Code Filter control lookup for custom sales price types.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnLookupCodeFilterCtrlOnBeforeSalesPriceTypeCaseElse(var SalesPrice: Record "KVSKBASalesPrice"; var Text: Text; var LookupSelected: Boolean): 

Parameters:

  • SalesPrice: The current sales price record.
  • Text: The text value to be returned by the lookup trigger.
  • LookupSelected: Set to false to cancel the lookup and return false from the trigger.

Remarks: Subscribe to this event to implement a custom lookup dialog for non-standard sales price type values. Set LookupSelected to false to signal that no value was selected and cancel the lookup. This event is obsolete; the price calculation is subject to redesign and this event may be removed in the future.

OnUpdateBasicRecFiltersOnBeforeItemTypeFilterCaseElse(Record KVSKBASalesPrice, Option, Boolean) :

OBSOLETE

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

Summary: Integration event raised before the case-else branch when determining the item type filter in UpdateBasicRecFilters.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnUpdateBasicRecFiltersOnBeforeItemTypeFilterCaseElse(SalesPrice: Record "KVSKBASalesPrice"; var ItemTypeFilter: Option; var IsHandled: Boolean): 

Parameters:

  • SalesPrice: The current sales price record providing the active type filter.
  • ItemTypeFilter: The item type filter option variable to be assigned by the subscriber.
  • IsHandled: Set to true to indicate the event has been handled and suppress the default error.

Remarks: Subscribe to this event to handle custom item type filter values that are not covered by the standard cases. Set IsHandled to true to suppress the default error that would otherwise be raised. This event is obsolete; the price calculation is subject to redesign and this event may be removed in the future.

OnAfterLookupSalesCodeFilterCtrl(Enum KVSKBASalesPriceTypeFilter, Text, Boolean, Boolean) :

OBSOLETE

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

Summary: Integration event raised after the sales code filter control lookup has completed.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnAfterLookupSalesCodeFilterCtrl(SalesTypeFilter: Enum "KVSKBASalesPriceTypeFilter"; var Text: Text; var ResultBool: Boolean; var IsHandled: Boolean): 

Parameters:

  • SalesTypeFilter: The current sales type filter value active during the lookup.
  • Text: The text value returned by the lookup; can be modified by the subscriber.
  • ResultBool: The boolean result to be returned from the OnLookup trigger; assign the desired value.
  • IsHandled: Set to true to indicate the event has been handled and skip the default exit.

Remarks: Subscribe to this event to post-process the lookup result or to override the value returned by the lookup trigger. Set IsHandled to true and assign ResultBool to suppress the default exit statement.

OnGetFilterDescriptionOnCaseSalesTypeFilterOnCaseElse(Enum KVSKBASalesPriceTypeFilter, Text, Text, Text) :

OBSOLETE

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

Summary: Integration event raised in the case-else branch of the sales type filter when building the caption filter description.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnGetFilterDescriptionOnCaseSalesTypeFilterOnCaseElse(SalesTypeFilter: Enum "KVSKBASalesPriceTypeFilter"; SalesCodeFilter: Text; var SalesSrcTableName: Text; var Description: Text): 

Parameters:

  • SalesTypeFilter: The current sales type filter value that triggered the case-else branch.
  • SalesCodeFilter: The current sales code filter text.
  • SalesSrcTableName: Assign the display name of the sales source table to be shown in the description.
  • Description: Assign the description text (e.g. name of the customer or price group) to be shown in the caption.

Remarks: Subscribe to this event to supply a custom source table name and description text for non-standard sales type filter values.

OnSetRecFiltersOnCaseSalesTypeFilterCaseElse(Enum KVSKBASalesPriceTypeFilter, Text) :

OBSOLETE

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

Summary: Integration event raised in the case-else branch of the sales type filter during SetRecFilters.

[Obsolete('The price calculation needs a redesign due to the standard changes, possibly the function will not be available in the future.', '18.3')]
[IntegrationEvent(false, false)]
local procedure OnSetRecFiltersOnCaseSalesTypeFilterCaseElse(SalesTypeFilter: Enum "KVSKBASalesPriceTypeFilter"; SalesCodeFilter: Text): 

Parameters:

  • SalesTypeFilter: The current sales type filter value that triggered the case-else branch.
  • SalesCodeFilter: The current sales code filter text to be validated.

Remarks: Subscribe to this event to call CheckFilters or apply additional filter logic for custom sales type filter values that are not covered by the standard Customer, Customer Price Group and Campaign cases.