Table of Contents

KVSKBASalesLineDiscounts

OBSOLETE

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

Events

OnGetSalesTypeFilterOnCase(Record KVSKBASalesLineDiscount, Enum KVSKBASalesDiscountTypeFilter, 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(KVSKBASalesLineDiscount: Record "KVSKBASalesLineDiscount"; var ResultEnum: Enum "KVSKBASalesDiscountTypeFilter"; var IsHandled: Boolean): 

Parameters:

  • KVSKBASalesLineDiscount: The current sales line discount record containing the active filter.
  • ResultEnum: The resolved sales discount 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 discount type filter values. Assign ResultEnum to the desired filter value and set IsHandled to true to prevent the default fallthrough. This event is obsolete; the price calculation is subject to redesign and this event may be removed in the future.

OnAfterLookupSalesCodeFilterCtrl(Enum KVSKBASalesDiscountTypeFilter, 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 "KVSKBASalesDiscountTypeFilter"; 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. This event is obsolete; the price calculation is subject to redesign and this event may be removed in the future.

OnGetFilterDescriptionOnCaseSalesTypeFilterOnCaseElse(Enum KVSKBASalesDiscountTypeFilter, 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 "KVSKBASalesDiscountTypeFilter"; 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 discount 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 discount type filter values. This event is obsolete; the price calculation is subject to redesign and this event may be removed in the future.