Table of Contents

KVSKBAPriceListMgtHelper

Events

OnAfterSetFilterDuplicatePriceListLine(Record Price List Line, Record Price List Line) :

Summary: Raised after setting filters for finding a duplicate price list line. Subscribers can use this event to implement custom logic for modifying the duplicate price list line or performing additional actions after the filters have been set.

[IntegrationEvent(false, false)]
local procedure OnAfterSetFilterDuplicatePriceListLine(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line"): 

Parameters:

  • PriceListLine: The price list line record being processed.
  • DuplicatePriceListLine: The duplicate price list line record that may be modified or used for finding duplicates.

Remarks: Subscribers can modify the DuplicatePriceListLine record or perform additional actions after the filters have been set for finding a duplicate price list line.

OnBeforeClosePricesandDiscounts(Record Price List Line, Record Price List Line, Boolean) :

Summary: Raised before closing prices and discounts for a price list line. Subscribers can use this event to implement custom logic for handling the closing of prices and discounts, such as modifying the duplicate price list line or performing additional actions before the closing process.

[IntegrationEvent(false, false)]
local procedure OnBeforeClosePricesandDiscounts(PriceListLine: Record "Price List Line"; var DuplicatePriceListLine: Record "Price List Line"; var IsHandled: Boolean): 

Parameters:

  • PriceListLine: The price list line record being processed.
  • DuplicatePriceListLine: The duplicate price list line record that may be modified or used for closing prices and discounts.
  • IsHandled: A boolean variable that indicates whether the event has been handled by a subscriber. If set to true, the default closing logic will be skipped.

Remarks: Subscribers can modify the DuplicatePriceListLine record or perform additional actions before the closing process. If IsHandled is set to true, the default closing logic will be skipped.

OnAddLineOnAfterPopulatePriceListLineFieldsOnBeforeGetSalesCondition(Record Price Asset, Record Price Line Filters, Codeunit Price List Management, Record Price List Header, Record Price List Line) :

[IntegrationEvent(false, false)]
local procedure OnAddLineOnAfterPopulatePriceListLineFieldsOnBeforeGetSalesCondition(PriceAsset: Record "Price Asset"; var PriceLineFilters: Record "Price Line Filters"; var PriceListManagement: Codeunit "Price List Management"; ToPriceListHeader: Record "Price List Header"; var PriceListLine: Record "Price List Line"):