KVSTRDCalculatePlanReqWksh
Events
KVSTRDOnAfterSetSalesLineFiltersInCalculateQtyOnSalesOrder(Record Sales Line, Record Item) :
Summary: This event is raised after the filters for SalesLine are set in the CalculateQtyOnSalesOrder function. It allows additional customization of the SalesLine filters before calculating the quantity on sales orders.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnAfterSetSalesLineFiltersInCalculateQtyOnSalesOrder(var SalesLine: Record "Sales Line"; var Item: Record "Item"):
Parameters:
SalesLine: The Sales Line record to which the filters are applied.Item: The Item record that is used to set the filters.
KVSTRDOnBeforeCalculateQtyOnSalesOrder(Record Item, Boolean, Decimal, Boolean) :
Summary: This event is raised before calculating the quantity on sales orders for an item.
[IntegrationEvent(false, false)]
local procedure KVSTRDOnBeforeCalculateQtyOnSalesOrder(var Item: Record "Item"; var OnlyReleasedSalesOrders: Boolean; var QtyOnSalesOrder: Decimal; var IsHandled: Boolean):
Parameters:
Item: The Item record for which the quantity on sales orders is calculated.OnlyReleasedSalesOrders: Specifies whether only released sales orders should be considered.QtyOnSalesOrder: The calculated quantity on sales orders.isHandled: Specifies if the event has been handled. If set to true, the default logic will not be executed.