KVSKBADispatchMgt#
Procedures#
Release(Record KVSKBADispatchHandlingHeader) :#
Summary: Releases a dispatch handling order after performing validation checks.
procedure Release(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
Parameters:
DispatchHandlingHeader: The dispatch handling header to release
Remarks: This function validates the dispatch order, checks dangerous goods limits, assigns carrier IDs, and verifies package assignments before changing the status to Released.
PostYesNo(Record KVSKBADispatchHandlingHeader) :#
Summary: Posts a dispatch handling header after user confirmation and validation checks.
procedure PostYesNo(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
Parameters:
DispatchHandlingHeader: The dispatch handling header to post
Remarks: This function performs pre-posting checks, gets user confirmation, determines invoice settings, and executes the posting process including opening any newly created dispatch orders.
PostYesNoPreChecks(Record KVSKBADispatchHandlingHeader) : Boolean#
Summary: Executes validation checks before posting a dispatch handling header.
procedure PostYesNoPreChecks(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"): Boolean
Parameters:
DispatchHandlingHeader: The dispatch handling header to validate
Returns: True if posting should proceed, false otherwise
Remarks: This function validates the dispatch order status, checks for lines, gets user confirmation, and validates mandatory fields before allowing the posting to proceed.
GetToInvoiceSetting(Record KVSKBADispatchHandlingHeader) : Boolean#
Summary: Determines the invoice setting for posting warehouse shipments and inventory picks.
procedure GetToInvoiceSetting(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"): Boolean
Parameters:
DispatchHandlingHeader: The dispatch handling header to check
Returns: True if invoicing should be performed, false otherwise
Remarks: This function checks the destination type and dispatch carrier setup to determine whether warehouse documents should be invoiced during posting.
RegisterPickAndCreateDHOrder(Record Warehouse Activity Line, Boolean, Boolean) :#
Summary: Registers a warehouse pick and creates a dispatch handling order with optional confirmation and display.
procedure RegisterPickAndCreateDHOrder(var WarehouseActivityLine: Record "Warehouse Activity Line"; ShowConfirm: Boolean; ShowDispOrder: Boolean):
Parameters:
WarehouseActivityLine: The warehouse activity lines to registerShowConfirm: Whether to show confirmation dialogShowDispOrder: Whether to open the dispatch order page
Remarks: This function provides full control over the registration and dispatch creation process, allowing customization of user interaction and display behavior.
CreateDHLinesFromSalesShpts(Record Sales Shipment Header, Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Creates dispatch handling lines from sales shipments.
procedure CreateDHLinesFromSalesShpts(var SalesShipmentHeader: Record "Sales Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; ShowMessage: Boolean):
Parameters:
SalesShipmentHeader: The source sales shipment header recordsDispatchHandlingHeader: The target dispatch handling headerShowMessage: Whether to display messages about line creation
Remarks: This function processes sales shipment headers and creates corresponding dispatch handling lines, considering remaining quantities and location settings.
CreateDispatchHandlingLinesFromTransferShipment(Record Transfer Shipment Header, Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Creates dispatch handling lines from a transfer shipment.
procedure CreateDispatchHandlingLinesFromTransferShipment(var TransferShipmentHeader: Record "Transfer Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; ShowMessage: Boolean):
Parameters:
TransferShipmentHeader: The source transfer shipment header recordsDispatchHandlingHeader: The target dispatch handling headerShowMessage: Whether to display messages about line creation
Remarks: This function processes transfer shipment headers and creates corresponding dispatch handling lines, considering remaining quantities and location settings.
RunPosting(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Posts the dispatch handling order, including related warehouse shipments and inventory picks.
procedure RunPosting(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; Invoice: Boolean):
Parameters:
DispatchHandlingHeader: The dispatch handling header to postInvoice: Whether to invoice related documents
Remarks: This function manages the complete posting process for a dispatch handling order, including releasing the order, posting related warehouse shipments and inventory picks, preparing carrier postings, and handling post-posting actions such as printing and interface triggers.
PostWarehouseShipments(Record KVSKBADispatchHandlingHeader, Boolean) : Boolean#
Summary: Posts the warehouse shipments associated with a dispatch handling header.
procedure PostWarehouseShipments(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; Invoice: Boolean): Boolean
Parameters:
DispatchHandlingHeader: The dispatch handling header containing warehouse shipments to postInvoice: Whether to invoice the warehouse shipments
Returns: True if successful, false if no warehouse shipments were found
Remarks: This function collects and posts all warehouse shipments linked to the dispatch order, handling item tracking synchronization and quantity validation.
PostInvtPicks(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Posts the inventory picks associated with a dispatch handling header.
procedure PostInvtPicks(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; Invoice: Boolean):
Parameters:
DispatchHandlingHeader: The dispatch handling header containing inventory picks to postInvoice: Whether to invoice the inventory picks
Remarks: This function collects and posts all inventory picks linked to the dispatch order, updating quantities and shipping information before posting.
CheckInvtPickLineNotInDispatch(Record Warehouse Activity Line) :#
Summary: Validates that an inventory pick line is not linked to any dispatch handling order before modification/deletion.
procedure CheckInvtPickLineNotInDispatch(WarehouseActivityLine: Record "Warehouse Activity Line"):
Parameters:
WarehouseActivityLine: The inventory pick line to check
Remarks: This function prevents modification or deletion of inventory pick lines that are already assigned to dispatch handling orders, maintaining data integrity.
CheckInvtPickHeaderNotInDispatch(Record Warehouse Activity Header) :#
Summary: Validates that an inventory pick header is not linked to any dispatch handling order before deletion.
procedure CheckInvtPickHeaderNotInDispatch(WarehouseActivityHeader: Record "Warehouse Activity Header"):
Parameters:
WarehouseActivityHeader: The inventory pick header to check
Remarks: This function prevents deletion of inventory pick headers that are already assigned to dispatch handling orders, maintaining data integrity.
CreateAndPostDispOrdrOnPostSalesShpt(Record Sales Shipment Header, Record Sales Header) :#
Summary: Automatically creates and posts a dispatch handling order after posting a sales shipment.
procedure CreateAndPostDispOrdrOnPostSalesShpt(SalesShipmentHeader: Record "Sales Shipment Header"; SalesHeader: Record "Sales Header"):
Parameters:
SalesShipmentHeader: The new sales shipment header recordSalesHeader: The source sales header record
Remarks: This function is called automatically when posting sales shipments in locations with automatic dispatch handling, creating a complete dispatch order from shipment and package data.
PreparePackageLinesForDispatchHandlingOrder(Record KVSKBADispatchPackageLine, Record KVSKBADispatchPackageLine, Integer, Code[20]) :#
Summary: Prepares package lines before inserting them into a dispatch handling order.
procedure PreparePackageLinesForDispatchHandlingOrder(var DispatchPackageLine: Record "KVSKBADispatchPackageLine"; var TempDispatchPackageLine: Record "KVSKBADispatchPackageLine" temporary; SourceTypePar: Integer; SourceNoPar: Code[20]):
Parameters:
DispatchPackageLine: The source dispatch package linesTempDispatchPackageLine: The target temporary dispatch package linesSourceTypePar: The source table IDSourceNoPar: The source document number
Remarks: This function splits package lines based on quantity, creating individual lines for each package and preparing them for insertion into dispatch handling orders.
AddPackageLinesToDisphandlingOrder(Record KVSKBADispatchHandlingHeader, Record KVSKBADispatchPackageLine) :#
Summary: Adds package lines to a dispatch handling order as carrier lines.
procedure AddPackageLinesToDisphandlingOrder(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var DispatchPackageLine: Record "KVSKBADispatchPackageLine"):
Parameters:
DispatchHandlingHeader: The target dispatch handling headerDispatchPackageLine: The source dispatch package lines
Remarks: This function creates dispatch handling lines from dispatch package lines, setting up carrier information, source references, and package details.
SetPostWithPrint(Boolean, Boolean) :#
Summary: Sets the print and show request options for dispatch handling posting.
procedure SetPostWithPrint(NewPrintAfterPost: Boolean; NewShowRequest: Boolean):
Parameters:
NewPrintAfterPost: Whether to print after postingNewShowRequest: Whether to show request pages
Remarks: This function configures the printing behavior after posting dispatch handling orders, controlling both automatic printing and request page display.
CreateDispatchHandlingOrder(Record Sales Header, Record Sales Shipment Header) :#
Summary: Creates a dispatch handling order when location has automatic dispatch handling configured.
procedure CreateDispatchHandlingOrder(SalesHeader: Record "Sales Header"; SalesShipmentHeader: Record "Sales Shipment Header"):
Parameters:
SalesHeader: The source sales headerSalesShipmentHeader: The new sales shipment header
Remarks: This function is called during sales posting to automatically create dispatch orders when the location is configured for automatic dispatch handling with packages.
DeleteAddedTablesfromSalesHeader(Record Sales Header) :#
Summary: Deletes added tables from a sales header when it's being deleted.
procedure DeleteAddedTablesfromSalesHeader(SalesHeader: Record "Sales Header"):
Parameters:
SalesHeader: The sales header being deleted
Remarks: This function removes dispatch package lines associated with a sales header when the sales header is being deleted.
AssignLinesToPackage(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Boolean) :#
Summary: Assigns selected dispatch handling lines to a package line with optional recalculation prevention.
procedure AssignLinesToPackage(var TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; AssignDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; PreventReCalc: Boolean):
Parameters:
TempDispatchHandlingLine: The temporary dispatch handling lines to assignAssignDispatchHandlingLine: The selected package line to assign toPreventReCalc: Whether to prevent package structure recalculation
Remarks: This function assigns dispatch handling lines to a carrier/package line, managing sequence numbers and optionally triggering package structure recalculation.
AssignLinesToPackage(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine) :#
Summary: Assigns selected dispatch handling lines to a package line and recalculates package structure.
procedure AssignLinesToPackage(var TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; AssignDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
Parameters:
TempDispatchHandlingLine: The temporary dispatch handling lines to assignAssignDispatchHandlingLine: The selected package line to assign to
Remarks: This function assigns dispatch handling lines to a carrier/package line and automatically recalculates the package structure after assignment.
CalcPackageStructureForDispatchOrder(Code[20]) :#
Summary: Calculates and rebuilds the package structure for a complete dispatch handling order.
procedure CalcPackageStructureForDispatchOrder(DispatchHandlingOrderNo: Code[20]):
Parameters:
DispatchHandlingOrderNo: The dispatch handling order number
Remarks: This function completely recalculates the package structure hierarchy, organizing lines by levels, assigning sequence numbers, and calculating weights throughout the structure.
CalculatePackageStructureForDispatchHandlingLine(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Integer, Integer, Integer) : Boolean#
Summary: Calculates the package structure for a specific dispatch handling line and its substructure.
procedure CalculatePackageStructureForDispatchHandlingLine(SuperiorPreviousDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; SuperiorNewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempAllRecordsDispatchLine: Record "KVSKBADispatchHandlingLine" temporary; var TempNewDispatchLine: Record "KVSKBADispatchHandlingLine" temporary; var LineNo: Integer; var PackageSequenceLineNo: Integer; PackageLevelNo: Integer): Boolean
Parameters:
SuperiorPreviousDispatchHandlingLine: The current dispatch handling lineSuperiorNewDispatchHandlingLine: The new created dispatch handling lineTempAllRecordsDispatchLine: All dispatch handling linesTempNewDispatchLine: New created dispatch handling linesLineNo: The line number counterPackageSequenceLineNo: The package sequence line number counterPackageLevelNo: The package level number counter
Returns: True if a substructure was created or exists, false otherwise
Remarks: This function recursively processes package structures, handling hierarchical relationships and calculating weights at each level of the package structure.
CreateDispatchLinesFromDocuments(Record KVSKBADispatchHandlingHeader, Code[20]) :#
Summary: Creates dispatch lines from various document types using a document number.
procedure CreateDispatchLinesFromDocuments(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DocumentNo: Code[20]):
Parameters:
DispatchHandlingHeader: The dispatch handling header to add lines toDocumentNo: The document number to search for
Remarks: This function searches across multiple document types (warehouse shipments, inventory picks, sales shipments, etc.) and creates dispatch lines from matching documents.
TransferUnhandledLines(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Integer, Integer) :#
Summary: Transfers unhandled temporary dispatch handling lines into the new dispatch handling lines stack.
procedure TransferUnhandledLines(var TempCurrentDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var TempNewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; LineNo: Integer; PackageSequenceLineNo: Integer):
Parameters:
TempCurrentDispatchHandlingLine: The unhandled temporary dispatch linesTempNewDispatchHandlingLine: The new temporary dispatch linesLineNo: The starting line numberPackageSequenceLineNo: The starting package sequence line number
Remarks: This function handles dispatch handling lines that don't fit into the package structure, ensuring all lines are preserved during package structure calculation.
CreatePackage(Record KVSKBADispatchHandlingLine, Record KVSKBACarrier, Record KVSKBADispatchHandlingHeader, Integer, Integer) : Record#
Obsolete
This Element will be removed or changed with a future Version of the App.
[Obsolete('Use "CreatePackageForDispatchLine" instead.', '26.0')]
procedure CreatePackage(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempCarrier: Record "KVSKBACarrier" temporary; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var NextLineNoLoc: Integer; var NextSequenceLineNo: Integer): Record KVSKBADispatchHandlingLine
CreatePackageForDispatchLine(Record KVSKBADispatchHandlingLine, Record KVSKBACarrier, Record KVSKBADispatchHandlingHeader, Integer, Integer) : Record#
procedure CreatePackageForDispatchLine(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempCarrier: Record "KVSKBACarrier" temporary; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var NextLineNo: Integer; var NextSequenceLineNo: Integer): Record KVSKBADispatchHandlingLine
Events#
OnPostWhseShptsOnBeforeReopenWhseShptHeader(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Header) :#
Summary: Event fired before reopening warehouse shipment header during posting.
[IntegrationEvent(false, false)]
local procedure OnPostWhseShptsOnBeforeReopenWhseShptHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostWhseShptsOnBeforeReopenWhseShptHeader', '', false, false)]
local procedure DoSomethingOnPostWhseShptsOnBeforeReopenWhseShptHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header being postedWarehouseShipmentHeader: The warehouse shipment header to be reopened
Remarks: This event allows subscribers to modify warehouse shipment header settings before it is reopened for posting updates.
OnAfterReopenWhseShptHeaderInPostWhseShpts(Record KVSKBADispatchHandlingHeader, Boolean, Record Warehouse Shipment Header) :#
Summary: Event fired after reopening warehouse shipment header during posting.
[IntegrationEvent(false, false)]
local procedure OnAfterReopenWhseShptHeaderInPostWhseShpts(DispHandlHeaderPar: Record "KVSKBADispatchHandlingHeader"; InvoicePar: Boolean; var WhseShptHeaderVar: Record "Warehouse Shipment Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterReopenWhseShptHeaderInPostWhseShpts', '', false, false)]
local procedure DoSomethingOnAfterReopenWhseShptHeaderInPostWhseShpts(DispHandlHeaderPar: Record "KVSKBADispatchHandlingHeader"; InvoicePar: Boolean; var WhseShptHeaderVar: Record "Warehouse Shipment Header")
begin
end;
Parameters:
DispHandlHeaderPar: The dispatch handling header being postedInvoicePar: Whether invoicing is being performedWhseShptHeaderVar: The warehouse shipment header that was reopened
Remarks: This event allows subscribers to perform additional processing after the warehouse shipment header has been reopened and updated during posting.
OnAfterConfirmInPostYesNo(Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired after user confirmation in posting process.
[IntegrationEvent(false, false)]
local procedure OnAfterConfirmInPostYesNo(var DispHandlHeaderVar: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterConfirmInPostYesNo', '', false, false)]
local procedure DoSomethingOnAfterConfirmInPostYesNo(var DispHandlHeaderVar: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
DispHandlHeaderVar: The dispatch handling header being posted
Remarks: This event allows subscribers to perform validation or setup after the user has confirmed the posting but before the actual posting begins.
OnAddPackagesOnBeforeModifyNewDispatchHandlingLine(Record KVSKBADispatchHandlingLine, Record KVSKBACarrier) :#
Summary: Event fired before modifying new dispatch handling line during package addition.
[IntegrationEvent(false, false)]
local procedure OnAddPackagesOnBeforeModifyNewDispatchHandlingLine(var KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempKVSKBACarrier: Record "KVSKBACarrier" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAddPackagesOnBeforeModifyNewDispatchHandlingLine', '', false, false)]
local procedure DoSomethingOnAddPackagesOnBeforeModifyNewDispatchHandlingLine(var KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempKVSKBACarrier: Record "KVSKBACarrier" temporary)
begin
end;
Parameters:
KVSKBADispatchHandlingLine: The new dispatch handling line to be modifiedTempKVSKBACarrier: The temporary carrier record with package information
Remarks: This event allows subscribers to customize dispatch handling line fields before the line is saved when adding packages to a dispatch order.
OnBeforeCheckSetupOption(Enum KVSKBADispatchHandlingType) :#
Summary: Event fired before checking setup options for dispatch handling types.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckSetupOption(KVSKBADispatchHandlingType: Enum "KVSKBADispatchHandlingType"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckSetupOption', '', false, false)]
local procedure DoSomethingOnBeforeCheckSetupOption(KVSKBADispatchHandlingType: Enum "KVSKBADispatchHandlingType")
begin
end;
Parameters:
KVSKBADispatchHandlingType: The dispatch handling type to validate
Remarks: This event allows subscribers to implement custom validation logic for different dispatch handling types before the standard checks are performed.
OnBeforePostYesNo(Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired before posting dispatch handling header.
[IntegrationEvent(false, false)]
local procedure OnBeforePostYesNo(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforePostYesNo', '', false, false)]
local procedure DoSomethingOnBeforePostYesNo(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header to be posted
Remarks: This event allows subscribers to perform validation or setup before the posting process begins for a dispatch handling order.
OnBeforeRelease(Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired before releasing dispatch handling header.
[IntegrationEvent(false, false)]
local procedure OnBeforeRelease(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeRelease', '', false, false)]
local procedure DoSomethingOnBeforeRelease(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header to be released
Remarks: This event allows subscribers to perform validation or setup before the release process begins for a dispatch handling order.
OnPostDispHandlOrderOnAfterInsertPostedDispHandlHeader(Record KVSKBADispatchHandlingHeader, Record KVSKBAPostedDispatchHandHeader) :#
Summary: Event fired after inserting posted dispatch handling header.
[IntegrationEvent(false, false)]
local procedure OnPostDispHandlOrderOnAfterInsertPostedDispHandlHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostDispHandlOrderOnAfterInsertPostedDispHandlHeader', '', false, false)]
local procedure DoSomethingOnPostDispHandlOrderOnAfterInsertPostedDispHandlHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The original dispatch handling headerKVSKBAPostedDispatchHandHeader: The newly inserted posted dispatch handling header
Remarks: This event allows subscribers to perform additional processing after the posted dispatch handling header has been created during posting.
OnPostDispHandlOrderOnAfterInsertPostedDispHandlLine(Record KVSKBADispatchHandlingLine, Record KVSKBAPostedDispatchHandlLine) :#
Summary: Event fired after inserting posted dispatch handling line.
[IntegrationEvent(false, false)]
local procedure OnPostDispHandlOrderOnAfterInsertPostedDispHandlLine(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var KVSKBAPostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostDispHandlOrderOnAfterInsertPostedDispHandlLine', '', false, false)]
local procedure DoSomethingOnPostDispHandlOrderOnAfterInsertPostedDispHandlLine(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var KVSKBAPostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine")
begin
end;
Parameters:
KVSKBADispatchHandlingLine: The original dispatch handling lineKVSKBAPostedDispatchHandlLine: The newly inserted posted dispatch handling line
Remarks: This event allows subscribers to perform additional processing after each posted dispatch handling line has been created during posting.
OnPostDispHandlOrderOnBeforeInsertPostedDispHandlHeader(Record KVSKBADispatchHandlingHeader, Record KVSKBAPostedDispatchHandHeader) :#
Summary: Event fired before inserting posted dispatch handling header.
[IntegrationEvent(false, false)]
local procedure OnPostDispHandlOrderOnBeforeInsertPostedDispHandlHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostDispHandlOrderOnBeforeInsertPostedDispHandlHeader', '', false, false)]
local procedure DoSomethingOnPostDispHandlOrderOnBeforeInsertPostedDispHandlHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The original dispatch handling headerKVSKBAPostedDispatchHandHeader: The posted dispatch handling header to be inserted
Remarks: This event allows subscribers to modify fields in the posted dispatch handling header before it is inserted into the database during posting.
OnPostDispHandlOrderOnBeforeInsertPostedDispHandlLine(Record KVSKBADispatchHandlingLine, Record KVSKBAPostedDispatchHandlLine) :#
Summary: Event fired before inserting posted dispatch handling line.
[IntegrationEvent(false, false)]
local procedure OnPostDispHandlOrderOnBeforeInsertPostedDispHandlLine(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var KVSKBAPostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostDispHandlOrderOnBeforeInsertPostedDispHandlLine', '', false, false)]
local procedure DoSomethingOnPostDispHandlOrderOnBeforeInsertPostedDispHandlLine(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var KVSKBAPostedDispatchHandlLine: Record "KVSKBAPostedDispatchHandlLine")
begin
end;
Parameters:
KVSKBADispatchHandlingLine: The original dispatch handling lineKVSKBAPostedDispatchHandlLine: The posted dispatch handling line to be inserted
Remarks: This event allows subscribers to modify fields in posted dispatch handling lines before they are inserted into the database during posting.
OnBeforeCreateDHLinesFromSalesShpts(Record KVSKBADispatchHandlingHeader, Record Sales Shipment Header, Boolean) :#
Summary: Event fired before creating dispatch handling lines from sales shipments.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDHLinesFromSalesShpts(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDHLinesFromSalesShpts', '', false, false)]
local procedure DoSomethingOnBeforeCreateDHLinesFromSalesShpts(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; SalesShipmentHeader: Record "Sales Shipment Header"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header to add lines toSalesShipmentHeader: The sales shipment headers to processIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from sales shipments, bypassing the standard process.
OnAfterCreateDHLinesFromSalesShpts(Record KVSKBADispatchHandlingHeader, Record Sales Shipment Header, Boolean, Boolean) :#
Summary: Event fired after creating dispatch handling lines from sales shipments.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateDHLinesFromSalesShpts(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; SalesShipmentHeader: Record "Sales Shipment Header"; LinesCreated: Boolean; var ShowMessage: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCreateDHLinesFromSalesShpts', '', false, false)]
local procedure DoSomethingOnAfterCreateDHLinesFromSalesShpts(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; SalesShipmentHeader: Record "Sales Shipment Header"; LinesCreated: Boolean; var ShowMessage: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header with new linesSalesShipmentHeader: The processed sales shipment headersLinesCreated: Indicates if any lines were successfully createdShowMessage: Controls whether to show messages about line creation results
Remarks: This event allows subscribers to perform additional processing after dispatch handling lines have been created from sales shipments and to control messaging behavior.
OnPostYesNoOnBeforeConfirm(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before user confirmation in posting process.
[IntegrationEvent(false, false)]
local procedure OnPostYesNoOnBeforeConfirm(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostYesNoOnBeforeConfirm', '', false, false)]
local procedure DoSomethingOnPostYesNoOnBeforeConfirm(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header to be postedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to bypass the standard confirmation dialog or implement custom confirmation logic for dispatch handling posting.
OnPostWhseShptsOnBeforeWhseShptHeaderModify(Record Warehouse Shipment Header, Record Warehouse Shipment Header, Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired before modifying warehouse shipment header during posting.
[IntegrationEvent(false, false)]
local procedure OnPostWhseShptsOnBeforeWhseShptHeaderModify(var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; xWarehouseShipmentHeader: Record "Warehouse Shipment Header"; KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnPostWhseShptsOnBeforeWhseShptHeaderModify', '', false, false)]
local procedure DoSomethingOnPostWhseShptsOnBeforeWhseShptHeaderModify(var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; xWarehouseShipmentHeader: Record "Warehouse Shipment Header"; KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
WarehouseShipmentHeader: The warehouse shipment header to be modifiedxWarehouseShipmentHeader: The previous version of the warehouse shipment headerKVSKBADispatchHandlingHeader: The related dispatch handling header
Remarks: This event allows subscribers to perform additional modifications to warehouse shipment headers before they are updated during dispatch handling posting.
OnBeforeCreateDispatchLinesFromDocuments(Record KVSKBADispatchHandlingHeader, Code[20]) :#
Summary: Event fired before creating dispatch lines from documents using document number search.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchLinesFromDocuments(var DispHandlHeader: Record "KVSKBADispatchHandlingHeader"; var DocumentNo: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchLinesFromDocuments', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchLinesFromDocuments(var DispHandlHeader: Record "KVSKBADispatchHandlingHeader"; var DocumentNo: Code[20])
begin
end;
Parameters:
DispHandlHeader: The dispatch handling header to add lines toDocumentNo: The document number to search for
Remarks: This event allows subscribers to modify the document search process or add custom document types to the search functionality.
OnAfterCreateDispatchLinesFromDocumentsBeforeNotification(Record KVSKBADispatchHandlingHeader, Code[20], Boolean) :#
Summary: Event fired after creating dispatch lines from documents but before notification.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateDispatchLinesFromDocumentsBeforeNotification(var DispHandlHeader: Record "KVSKBADispatchHandlingHeader"; DocumentNo: Code[20]; var FindDocument: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCreateDispatchLinesFromDocumentsBeforeNotification', '', false, false)]
local procedure DoSomethingOnAfterCreateDispatchLinesFromDocumentsBeforeNotification(var DispHandlHeader: Record "KVSKBADispatchHandlingHeader"; DocumentNo: Code[20]; var FindDocument: Boolean)
begin
end;
Parameters:
DispHandlHeader: The dispatch handling header with new linesDocumentNo: The document number that was searchedFindDocument: Indicates if any matching documents were found
Remarks: This event allows subscribers to modify the result of document search or add additional processing before user notification about search results.
OnAfterPostDispHandlOrder(Record KVSKBAPostedDispatchHandHeader) :#
Summary: Event fired after posting dispatch handling order.
[IntegrationEvent(false, false)]
local procedure OnAfterPostDispHandlOrder(var KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterPostDispHandlOrder', '', false, false)]
local procedure DoSomethingOnAfterPostDispHandlOrder(var KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader")
begin
end;
Parameters:
KVSKBAPostedDispatchHandHeader: The newly created posted dispatch handling header
Remarks: This event allows subscribers to perform additional processing after a dispatch handling order has been successfully posted and transferred to posted tables.
OnBeforeRunPosting(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before running the posting process.
[IntegrationEvent(false, false)]
local procedure OnBeforeRunPosting(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var Invoice: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeRunPosting', '', false, false)]
local procedure DoSomethingOnBeforeRunPosting(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var Invoice: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header to be postedInvoice: Controls whether to invoice related warehouse documents
Remarks: This event allows subscribers to perform validation or setup before the main posting process begins, and to control invoicing behavior.
OnAfterRunPosting(Code[20]) :#
Summary: Event fired after completing the posting process.
[IntegrationEvent(false, false)]
local procedure OnAfterRunPosting(PostedDispatchHandlingHeaderNo: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterRunPosting', '', false, false)]
local procedure DoSomethingOnAfterRunPosting(PostedDispatchHandlingHeaderNo: Code[20])
begin
end;
Parameters:
PostedDispatchHandlingHeaderNo: The number of the posted dispatch handling order
Remarks: This event allows subscribers to perform cleanup or additional processing after the entire posting process has completed successfully.
OnBeforeModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before modifying new dispatch handling line during warehouse shipment posting.
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var NewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt', '', false, false)]
local procedure DoSomethingOnBeforeModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var NewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
KVSKBADispatchHandlingLine: The original dispatch handling lineNewKVSKBADispatchHandlingLine: The new dispatch handling line to be modified
Remarks: This event allows subscribers to customize dispatch handling line updates when warehouse shipment lines are posted.
OnAfterModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired after modifying new dispatch handling line during warehouse shipment posting.
[IntegrationEvent(false, false)]
local procedure OnAfterModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var NewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt', '', false, false)]
local procedure DoSomethingOnAfterModifyNewDispHandlLine_InUpdateDispHLinOnPostWhseShpt(KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var NewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
KVSKBADispatchHandlingLine: The original dispatch handling lineNewKVSKBADispatchHandlingLine: The modified dispatch handling line
Remarks: This event allows subscribers to perform additional processing after dispatch handling lines have been updated following warehouse shipment posting.
OnCreateDHLinesFromWhseShptsOnAfterSetFilterBeforeFindRecords(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Line) :#
Summary: Event fired after setting filters on warehouse shipment lines during dispatch creation.
[IntegrationEvent(false, false)]
local procedure OnCreateDHLinesFromWhseShptsOnAfterSetFilterBeforeFindRecords(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentLine: Record "Warehouse Shipment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnCreateDHLinesFromWhseShptsOnAfterSetFilterBeforeFindRecords', '', false, false)]
local procedure DoSomethingOnCreateDHLinesFromWhseShptsOnAfterSetFilterBeforeFindRecords(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentLine: Record "Warehouse Shipment Line")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header contextWarehouseShipmentLine: The warehouse shipment lines with applied filters
Remarks: This event allows subscribers to modify or add additional filters to warehouse shipment lines when creating dispatch handling lines from warehouse shipments.
OnProcessWhseShptHeaderCheckProcessing(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Header, Boolean) :#
Summary: Event fired when checking whether to process a warehouse shipment header.
[IntegrationEvent(false, false)]
local procedure OnProcessWhseShptHeaderCheckProcessing(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var SkipCurrentRecord: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnProcessWhseShptHeaderCheckProcessing', '', false, false)]
local procedure DoSomethingOnProcessWhseShptHeaderCheckProcessing(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var SkipCurrentRecord: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header contextWarehouseShipmentHeader: The warehouse shipment header being evaluatedSkipCurrentRecord: Controls whether to skip processing this header
Remarks: This event allows subscribers to implement custom logic for determining which warehouse shipment headers should be processed during dispatch line creation.
OnProcessWhseShptLineCheckProcessing(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Line, Boolean) :#
Summary: Event fired when checking whether to process a warehouse shipment line.
[IntegrationEvent(false, false)]
local procedure OnProcessWhseShptLineCheckProcessing(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var SkipCurrentRecord: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnProcessWhseShptLineCheckProcessing', '', false, false)]
local procedure DoSomethingOnProcessWhseShptLineCheckProcessing(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var SkipCurrentRecord: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header contextWarehouseShipmentLine: The warehouse shipment line being evaluatedSkipCurrentRecord: Controls whether to skip processing this line
Remarks: This event allows subscribers to implement custom logic for determining which warehouse shipment lines should be processed during dispatch line creation.
OnProcessWhseShptLineCheckCreateNewHeader(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Line, Boolean, Record Warehouse Shipment Line) :#
Summary: Event fired when checking whether to create a new dispatch header for grouping.
[IntegrationEvent(false, false)]
local procedure OnProcessWhseShptLineCheckCreateNewHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var CreateNewHeader: Boolean; var WarehouseShipmentLineLastCreated: Record "Warehouse Shipment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnProcessWhseShptLineCheckCreateNewHeader', '', false, false)]
local procedure DoSomethingOnProcessWhseShptLineCheckCreateNewHeader(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var CreateNewHeader: Boolean; var WarehouseShipmentLineLastCreated: Record "Warehouse Shipment Line")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The current dispatch handling headerWarehouseShipmentLine: The warehouse shipment line being processedCreateNewHeader: Controls whether to create a new dispatch headerWarehouseShipmentLineLastCreated: The last processed warehouse shipment line for comparison
Remarks: This event allows subscribers to implement custom logic for grouping warehouse shipment lines into separate dispatch orders based on business rules.
OnGetWarehouseShipmentOnBeforeSetTableViewWhseShipmentList(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Header) :#
Summary: Event fired before setting table view on warehouse shipment list.
[IntegrationEvent(false, false)]
local procedure OnGetWarehouseShipmentOnBeforeSetTableViewWhseShipmentList(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnGetWarehouseShipmentOnBeforeSetTableViewWhseShipmentList', '', false, false)]
local procedure DoSomethingOnGetWarehouseShipmentOnBeforeSetTableViewWhseShipmentList(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header contextWarehouseShipmentHeader: The warehouse shipment header records for filtering
Remarks: This event allows subscribers to apply custom filters to the warehouse shipment list when users select warehouse shipments for dispatch line creation.
OnBeforePrepareCarrierPostingPerOrder(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before preparing carrier posting for dispatch order.
[IntegrationEvent(false, false)]
local procedure OnBeforePrepareCarrierPostingPerOrder(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforePrepareCarrierPostingPerOrder', '', false, false)]
local procedure DoSomethingOnBeforePrepareCarrierPostingPerOrder(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header being postedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom carrier posting preparation logic, bypassing the standard carrier item journal creation process.
OnBeforeModifyItemJnlLineForCarrierOutbound(Record Item Journal Line, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before modifying item journal line for carrier outbound posting.
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyItemJnlLineForCarrierOutbound(var ItemJournalLine: Record "Item Journal Line"; TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeModifyItemJnlLineForCarrierOutbound', '', false, false)]
local procedure DoSomethingOnBeforeModifyItemJnlLineForCarrierOutbound(var ItemJournalLine: Record "Item Journal Line"; TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary)
begin
end;
Parameters:
ItemJournalLine: The item journal line to be modifiedTempDispatchHandlingLine: The temporary dispatch handling line with carrier information
Remarks: This event allows subscribers to customize item journal lines before they are used for posting carrier outbound (non-returnable package) transactions.
OnBeforeModifyItemJnlLineForCarrierTransfer(Record Item Journal Line, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before modifying item journal line for carrier transfer posting.
[IntegrationEvent(false, false)]
local procedure OnBeforeModifyItemJnlLineForCarrierTransfer(var ItemJournalLine: Record "Item Journal Line"; TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeModifyItemJnlLineForCarrierTransfer', '', false, false)]
local procedure DoSomethingOnBeforeModifyItemJnlLineForCarrierTransfer(var ItemJournalLine: Record "Item Journal Line"; TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary)
begin
end;
Parameters:
ItemJournalLine: The item journal line to be modifiedTempDispatchHandlingLine: The temporary dispatch handling line with carrier information
Remarks: This event allows subscribers to customize item journal lines before they are used for posting carrier transfer (returnable package) transactions.
OnBeforeAddPackages(Record KVSKBADispatchHandlingLine, Boolean) :#
Summary: Event fired before adding packages to dispatch handling line.
[IntegrationEvent(false, false)]
local procedure OnBeforeAddPackages(var DispHandlLineVar: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeAddPackages', '', false, false)]
local procedure DoSomethingOnBeforeAddPackages(var DispHandlLineVar: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean)
begin
end;
Parameters:
DispHandlLineVar: The dispatch handling line contextIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom package addition logic, bypassing the standard carrier selection and package creation process.
OnCaseElseCarrierPostingTypeForAddingPackages(Record KVSKBADispatchHandlingLine, Record KVSKBACarrier) :#
Summary: Event fired for custom carrier posting types when adding packages.
[IntegrationEvent(false, false)]
local procedure OnCaseElseCarrierPostingTypeForAddingPackages(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; Carrier: Record "KVSKBACarrier"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnCaseElseCarrierPostingTypeForAddingPackages', '', false, false)]
local procedure DoSomethingOnCaseElseCarrierPostingTypeForAddingPackages(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; Carrier: Record "KVSKBACarrier")
begin
end;
Parameters:
DispatchHandlingLine: The dispatch handling line being createdCarrier: The carrier record with posting type information
Remarks: This event allows subscribers to handle custom carrier posting types that are not covered by the standard "Nonreturnable Package" and "Returnable Package" types.
OnBeforeAddAdditionalPackages(Record KVSKBADispatchHandlingLine, Boolean) :#
Summary: Event fired before adding additional packages to dispatch handling line.
[IntegrationEvent(false, false)]
local procedure OnBeforeAddAdditionalPackages(var DispHandlLineVar: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeAddAdditionalPackages', '', false, false)]
local procedure DoSomethingOnBeforeAddAdditionalPackages(var DispHandlLineVar: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean)
begin
end;
Parameters:
DispHandlLineVar: The dispatch handling line contextIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom additional package logic, bypassing the standard additional package selection and creation process.
OnCaseElseCarrierPostingTypeForAddingAdditionalPackages(Record KVSKBADispatchHandlingLine, Record KVSKBACarrier) :#
Summary: Event fired for custom carrier posting types when adding additional packages.
[IntegrationEvent(false, false)]
local procedure OnCaseElseCarrierPostingTypeForAddingAdditionalPackages(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; Carrier: Record "KVSKBACarrier"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnCaseElseCarrierPostingTypeForAddingAdditionalPackages', '', false, false)]
local procedure DoSomethingOnCaseElseCarrierPostingTypeForAddingAdditionalPackages(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; Carrier: Record "KVSKBACarrier")
begin
end;
Parameters:
DispatchHandlingLine: The dispatch handling line being createdCarrier: The carrier record with posting type information
Remarks: This event allows subscribers to handle custom carrier posting types for additional packages that are not covered by the standard posting types.
OnAddAdditionalPackagesOnBeforeModifyNewDispatchHandlingLine(Record KVSKBADispatchHandlingLine, Record KVSKBACarrier) :#
Summary: Event fired before modifying new dispatch handling line for additional packages.
[IntegrationEvent(false, false)]
local procedure OnAddAdditionalPackagesOnBeforeModifyNewDispatchHandlingLine(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; Carrier: Record "KVSKBACarrier"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAddAdditionalPackagesOnBeforeModifyNewDispatchHandlingLine', '', false, false)]
local procedure DoSomethingOnAddAdditionalPackagesOnBeforeModifyNewDispatchHandlingLine(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; Carrier: Record "KVSKBACarrier")
begin
end;
Parameters:
DispatchHandlingLine: The dispatch handling line to be modifiedCarrier: The carrier record with package information
Remarks: This event allows subscribers to customize dispatch handling line fields when adding additional packages to a dispatch order.
OnBeforeCalcPackageStructureForDispatchOrder(Code[20], Boolean) :#
Summary: Event fired before calculating package structure for dispatch order.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalcPackageStructureForDispatchOrder(DispatchHandlingOrderNo: Code[20]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCalcPackageStructureForDispatchOrder', '', false, false)]
local procedure DoSomethingOnBeforeCalcPackageStructureForDispatchOrder(DispatchHandlingOrderNo: Code[20]; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingOrderNo: The dispatch handling order numberIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom package structure calculation logic, bypassing the standard hierarchical structure creation process.
OnAfterCalcPackageStructureForDispatchOrder(Code[20]) :#
Summary: Event fired after calculating package structure for dispatch order.
[IntegrationEvent(false, false)]
local procedure OnAfterCalcPackageStructureForDispatchOrder(DispatchHandlingOrderNo: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCalcPackageStructureForDispatchOrder', '', false, false)]
local procedure DoSomethingOnAfterCalcPackageStructureForDispatchOrder(DispatchHandlingOrderNo: Code[20])
begin
end;
Parameters:
DispatchHandlingOrderNo: The dispatch handling order number
Remarks: This event allows subscribers to perform additional processing after the package structure has been calculated and lines have been reorganized.
OnBeforeInsertDispatchhandlingLinaAfterStructureCalculation(Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before inserting dispatch handling line after structure calculation.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertDispatchhandlingLinaAfterStructureCalculation(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeInsertDispatchhandlingLinaAfterStructureCalculation', '', false, false)]
local procedure DoSomethingOnBeforeInsertDispatchhandlingLinaAfterStructureCalculation(var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
DispatchHandlingLine: The dispatch handling line to be inserted
Remarks: This event allows subscribers to modify dispatch handling lines before they are reinserted after package structure calculation and reorganization.
OnBeforeCheckPackageLocations(Code[20], Boolean) :#
Summary: Event fired before checking package locations during release.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPackageLocations(dispatchHandlingOrderNoPar: Code[20]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckPackageLocations', '', false, false)]
local procedure DoSomethingOnBeforeCheckPackageLocations(dispatchHandlingOrderNoPar: Code[20]; var IsHandled: Boolean)
begin
end;
Parameters:
dispatchHandlingOrderNoPar: The dispatch handling order numberIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom package location validation logic, bypassing the standard location and bin code checks.
OnReleaseOnBeforeCheckShippingAgentServiceCode(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before checking shipping agent service code during release.
[IntegrationEvent(false, false)]
local procedure OnReleaseOnBeforeCheckShippingAgentServiceCode(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnReleaseOnBeforeCheckShippingAgentServiceCode', '', false, false)]
local procedure DoSomethingOnReleaseOnBeforeCheckShippingAgentServiceCode(KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header being releasedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to bypass or customize the shipping agent service code validation during dispatch handling order release.
OnBeforeCheckDispatchHandlingHeader(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before checking dispatch handling header during release.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckDispatchHandlingHeader(var dispHandlHeaderVar: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckDispatchHandlingHeader', '', false, false)]
local procedure DoSomethingOnBeforeCheckDispatchHandlingHeader(var dispHandlHeaderVar: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
dispHandlHeaderVar: The dispatch handling header being validatedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom header validation logic, bypassing or extending the standard field validation during release.
OnBeforeCheckOnePackageDispatch(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before checking one package dispatch validation.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckOnePackageDispatch(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckOnePackageDispatch', '', false, false)]
local procedure DoSomethingOnBeforeCheckOnePackageDispatch(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header being validatedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom validation logic for one package dispatch orders, bypassing the standard package level and assignment checks.
OnAfterCreateNewDispatchOrder(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Line, Record Warehouse Shipment Line) :#
Summary: Event fired after creating new dispatch order during warehouse shipment processing.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateNewDispatchOrder(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var WarehouseShipmentLineLastCreated: Record "Warehouse Shipment Line"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCreateNewDispatchOrder', '', false, false)]
local procedure DoSomethingOnAfterCreateNewDispatchOrder(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; WarehouseShipmentLine: Record "Warehouse Shipment Line"; var WarehouseShipmentLineLastCreated: Record "Warehouse Shipment Line")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The new dispatch handling headerWarehouseShipmentLine: The current warehouse shipment line being processedWarehouseShipmentLineLastCreated: The warehouse shipment line that triggered the new header creation
Remarks: This event allows subscribers to perform additional setup on new dispatch orders created during automatic grouping of warehouse shipment lines.
OnAfterCreateDHLinesFromDirectTransfer(Boolean, Record Direct Trans. Header, Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired after creating dispatch handling lines from direct transfer.
[IntegrationEvent(false, false)]
local procedure OnAfterCreateDHLinesFromDirectTransfer(LinesCreated: Boolean; DirectTransHeader: Record "Direct Trans. Header"; DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCreateDHLinesFromDirectTransfer', '', false, false)]
local procedure DoSomethingOnAfterCreateDHLinesFromDirectTransfer(LinesCreated: Boolean; DirectTransHeader: Record "Direct Trans. Header"; DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean)
begin
end;
Parameters:
LinesCreated: Indicates if any lines were successfully createdDirectTransHeader: The processed direct transfer headersDispatchHandlingHeader: The dispatch handling header with new linesShowMessage: Controls whether to show messages about line creation results
Remarks: This event allows subscribers to perform additional processing after dispatch handling lines have been created from direct transfers and to control messaging behavior.
OnBeforePrintReportsAfterPost(Boolean, Code[20], Boolean) :#
Summary: Event fired before printing reports after posting.
[IntegrationEvent(false, false)]
local procedure OnBeforePrintReportsAfterPost(var ShowRequestPage: Boolean; var PostedDispatchHandlingNo: Code[20]; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforePrintReportsAfterPost', '', false, false)]
local procedure DoSomethingOnBeforePrintReportsAfterPost(var ShowRequestPage: Boolean; var PostedDispatchHandlingNo: Code[20]; var IsHandled: Boolean)
begin
end;
Parameters:
ShowRequestPage: Controls whether to show report request pagesPostedDispatchHandlingNo: The posted dispatch handling order numberIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom post-posting report logic, bypassing or extending the standard report printing functionality.
OnBeforePrintInvoiceInPrintReportsAfterPost(Record KVSKBAPostedDispatchHandHeader, Boolean) :#
Summary: Event fired before printing invoices in post-posting reports.
[IntegrationEvent(false, false)]
local procedure OnBeforePrintInvoiceInPrintReportsAfterPost(KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"; var ShowRequestPage: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforePrintInvoiceInPrintReportsAfterPost', '', false, false)]
local procedure DoSomethingOnBeforePrintInvoiceInPrintReportsAfterPost(KVSKBAPostedDispatchHandHeader: Record "KVSKBAPostedDispatchHandHeader"; var ShowRequestPage: Boolean)
begin
end;
Parameters:
KVSKBAPostedDispatchHandHeader: The posted dispatch handling headerShowRequestPage: Controls whether to show report request pages
Remarks: This event allows subscribers to customize invoice printing behavior and control the display of report request pages for invoice reports.
OnBeforeChangeToItemJnlLineBinCode(Record Item Journal Line, Boolean, Boolean) :#
Summary: Event fired before changing item journal line bin code for dispatch-specific handling.
[IntegrationEvent(false, false)]
local procedure OnBeforeChangeToItemJnlLineBinCode(var ItemJournalLine: Record "Item Journal Line"; var ReturnValue: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeChangeToItemJnlLineBinCode', '', false, false)]
local procedure DoSomethingOnBeforeChangeToItemJnlLineBinCode(var ItemJournalLine: Record "Item Journal Line"; var ReturnValue: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ItemJournalLine: The item journal line being evaluatedReturnValue: The return value indicating whether to use dispatch-specific bin codesIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom bin code logic for carrier items during dispatch handling posting, overriding the standard bin code determination.
OnAfterUpdateDispHLinOnPostWhseShptOnCaseElseSourceDocument(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Boolean) :#
Summary: Event fired for custom source document types during warehouse shipment line updates.
[IntegrationEvent(false, false)]
local procedure OnAfterUpdateDispHLinOnPostWhseShptOnCaseElseSourceDocument(var NewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterUpdateDispHLinOnPostWhseShptOnCaseElseSourceDocument', '', false, false)]
local procedure DoSomethingOnAfterUpdateDispHLinOnPostWhseShptOnCaseElseSourceDocument(var NewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean)
begin
end;
Parameters:
NewDispatchHandlingLine: The new dispatch handling line to be updatedDispatchHandlingLine: The original dispatch handling lineIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to handle custom source document types when updating dispatch handling lines after warehouse shipment posting.
OnAfterUpdateDispHLinesOnPostInvPickLinesOnCaseElsePostedSourceType(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Record Warehouse Activity Line, Integer, Code[20]) :#
Summary: Event fired for custom posted source types during inventory pick line updates.
[IntegrationEvent(false, false)]
local procedure OnAfterUpdateDispHLinesOnPostInvPickLinesOnCaseElsePostedSourceType(var NewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; WarehouseActivityLine: Record "Warehouse Activity Line"; PostedSourceType: Integer; PostedSourceNo: Code[20]):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterUpdateDispHLinesOnPostInvPickLinesOnCaseElsePostedSourceType', '', false, false)]
local procedure DoSomethingOnAfterUpdateDispHLinesOnPostInvPickLinesOnCaseElsePostedSourceType(var NewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; WarehouseActivityLine: Record "Warehouse Activity Line"; PostedSourceType: Integer; PostedSourceNo: Code[20])
begin
end;
Parameters:
NewDispatchHandlingLine: The new dispatch handling line to be updatedDispatchHandlingLine: The original dispatch handling lineWarehouseActivityLine: The warehouse activity line that was postedPostedSourceType: The posted source document table IDPostedSourceNo: The posted source document number
Remarks: This event allows subscribers to handle custom posted source document types when updating dispatch handling lines after inventory pick posting.
OnAddPackageLinesToDisphandlingOrderOnCaseElseSourceType(Record KVSKBADispatchPackageLine, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired for custom source types when adding package lines to dispatch handling orders.
[IntegrationEvent(false, false)]
local procedure OnAddPackageLinesToDisphandlingOrderOnCaseElseSourceType(DispatchPackageLine: Record "KVSKBADispatchPackageLine"; var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAddPackageLinesToDisphandlingOrderOnCaseElseSourceType', '', false, false)]
local procedure DoSomethingOnAddPackageLinesToDisphandlingOrderOnCaseElseSourceType(DispatchPackageLine: Record "KVSKBADispatchPackageLine"; var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
DispatchPackageLine: The dispatch package line being processedDispatchHandlingLine: The dispatch handling line being created
Remarks: This event allows subscribers to handle custom source document types when converting dispatch package lines into dispatch handling lines.
OnBeforeCheckWhseShptLineNotInDispatch(Record Warehouse Shipment Line, Boolean) :#
Summary: Event fired before checking warehouse shipment line for dispatch handling usage.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckWhseShptLineNotInDispatch(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckWhseShptLineNotInDispatch', '', false, false)]
local procedure DoSomethingOnBeforeCheckWhseShptLineNotInDispatch(var WarehouseShipmentLine: Record "Warehouse Shipment Line"; var IsHandled: Boolean)
begin
end;
Parameters:
WarehouseShipmentLine: The warehouse shipment line to checkIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom validation logic for preventing modification or deletion of warehouse shipment lines used in dispatch handling.
OnBeforeCheckWhseShptHeaderNotInDispatch(Record Warehouse Shipment Header, Boolean) :#
Summary: Event fired before checking warehouse shipment header for dispatch handling usage.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckWhseShptHeaderNotInDispatch(var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckWhseShptHeaderNotInDispatch', '', false, false)]
local procedure DoSomethingOnBeforeCheckWhseShptHeaderNotInDispatch(var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var IsHandled: Boolean)
begin
end;
Parameters:
WarehouseShipmentHeader: The warehouse shipment header to checkIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom validation logic for preventing posting or deletion of warehouse shipment headers used in dispatch handling.
OnBeforeDeleteAddedTablesfromServiceHeader(Record KVSKBADispatchPackageLine, Record Service Header, Boolean) :#
Summary: Event fired before deleting added tables from service header.
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromServiceHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; ServiceHeader: Record "Service Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeDeleteAddedTablesfromServiceHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromServiceHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; ServiceHeader: Record "Service Header"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchPackageLine: The dispatch package lines to be deletedServiceHeader: The service header being deletedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom cleanup logic when service headers are deleted, controlling which dispatch package lines are removed.
OnBeforeDeleteAddedTablesfromTransferHeader(Record KVSKBADispatchPackageLine, Record Transfer Header, Boolean) :#
Summary: Event fired before deleting added tables from transfer header.
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromTransferHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; TransferHeader: Record "Transfer Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeDeleteAddedTablesfromTransferHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromTransferHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; TransferHeader: Record "Transfer Header"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchPackageLine: The dispatch package lines to be deletedTransferHeader: The transfer header being deletedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom cleanup logic when transfer headers are deleted, controlling which dispatch package lines are removed.
OnBeforeDeleteAddedTablesfromPurchaseHeader(Record KVSKBADispatchPackageLine, Record Purchase Header, Boolean) :#
Summary: Event fired before deleting added tables from purchase header.
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromPurchaseHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeDeleteAddedTablesfromPurchaseHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromPurchaseHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; PurchaseHeader: Record "Purchase Header"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchPackageLine: The dispatch package lines to be deletedPurchaseHeader: The purchase header being deletedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom cleanup logic when purchase headers are deleted, controlling which dispatch package lines are removed.
OnBeforeDeleteAddedTablesfromSalesHeader(Record KVSKBADispatchPackageLine, Record Sales Header, Boolean) :#
Summary: Event fired before deleting added tables from sales header.
[IntegrationEvent(false, false)]
local procedure OnBeforeDeleteAddedTablesfromSalesHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeDeleteAddedTablesfromSalesHeader', '', false, false)]
local procedure DoSomethingOnBeforeDeleteAddedTablesfromSalesHeader(var KVSKBADispatchPackageLine: Record "KVSKBADispatchPackageLine"; SalesHeader: Record "Sales Header"; var IsHandled: Boolean)
begin
end;
Parameters:
KVSKBADispatchPackageLine: The dispatch package lines to be deletedSalesHeader: The sales header being deletedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom cleanup logic when sales headers are deleted, controlling which dispatch package lines are removed.
OnRemoveDispHandlingLinesToNewOrderOnBeforeInsertNewLineForOnePackageDispatch(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before inserting new line for one package dispatch during order splitting.
[IntegrationEvent(false, false)]
local procedure OnRemoveDispHandlingLinesToNewOrderOnBeforeInsertNewLineForOnePackageDispatch(var ToKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var FromKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnRemoveDispHandlingLinesToNewOrderOnBeforeInsertNewLineForOnePackageDispatch', '', false, false)]
local procedure DoSomethingOnRemoveDispHandlingLinesToNewOrderOnBeforeInsertNewLineForOnePackageDispatch(var ToKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var FromKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
ToKVSKBADispatchHandlingLine: The new dispatch handling line to be insertedFromKVSKBADispatchHandlingLine: The original dispatch handling line being moved
Remarks: This event allows subscribers to customize dispatch handling lines before they are inserted into new orders during one package dispatch order splitting.
OnAfterRemoveDispHandlingLinesToNewOrder(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired after removing dispatch handling lines to new order during splitting.
[IntegrationEvent(false, false)]
local procedure OnAfterRemoveDispHandlingLinesToNewOrder(var FromKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; ToKVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterRemoveDispHandlingLinesToNewOrder', '', false, false)]
local procedure DoSomethingOnAfterRemoveDispHandlingLinesToNewOrder(var FromKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; ToKVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
FromKVSKBADispatchHandlingLine: The original dispatch handling line that was movedToKVSKBADispatchHandlingHeader: The new dispatch handling header that received the line
Remarks: This event allows subscribers to perform additional processing after dispatch handling lines have been moved to new orders during one package dispatch splitting.
OnAfterRelease(Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired after releasing dispatch handling header.
[IntegrationEvent(false, false)]
local procedure OnAfterRelease(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterRelease', '', false, false)]
local procedure DoSomethingOnAfterRelease(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header that was released
Remarks: This event allows subscribers to perform additional processing after a dispatch handling order has been successfully released and status changed to Released.
OnAfterPostYesNo(Record KVSKBADispatchHandlingHeader) :#
Summary: Event fired after posting dispatch handling header with user confirmation.
[IntegrationEvent(false, false)]
local procedure OnAfterPostYesNo(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterPostYesNo', '', false, false)]
local procedure DoSomethingOnAfterPostYesNo(var KVSKBADispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader")
begin
end;
Parameters:
KVSKBADispatchHandlingHeader: The dispatch handling header that was posted
Remarks: This event allows subscribers to perform additional processing after a dispatch handling order has been posted through the PostYesNo process.
OnBeforeUpdateWeightInCalcPackageStructureForDispatchLine(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Integer, Integer, Integer, Decimal, Boolean) :#
Summary: Event fired before updating weight in package structure calculation.
[IntegrationEvent(false, false)]
local procedure OnBeforeUpdateWeightInCalcPackageStructureForDispatchLine(var SuperiorPreviousKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var SuperiorNewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempAllRecordsKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var TempNewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var LineNo: Integer; var PackageSequenceLineNo: Integer; PackageLevelNo: Integer; var SuperiorNetWeight: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeUpdateWeightInCalcPackageStructureForDispatchLine', '', false, false)]
local procedure DoSomethingOnBeforeUpdateWeightInCalcPackageStructureForDispatchLine(var SuperiorPreviousKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var SuperiorNewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var TempAllRecordsKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var TempNewKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var LineNo: Integer; var PackageSequenceLineNo: Integer; PackageLevelNo: Integer; var SuperiorNetWeight: Decimal; var IsHandled: Boolean)
begin
end;
Parameters:
SuperiorPreviousKVSKBADispatchHandlingLine: The original superior dispatch handling lineSuperiorNewKVSKBADispatchHandlingLine: The new superior dispatch handling lineTempAllRecordsKVSKBADispatchHandlingLine: All dispatch handling lines in calculationTempNewKVSKBADispatchHandlingLine: New dispatch handling lines being createdLineNo: Current line number counterPackageSequenceLineNo: Current package sequence line number counterPackageLevelNo: Current package level numberSuperiorNetWeight: Calculated net weight for superior lineIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom weight calculation logic during package structure calculation, bypassing the standard weight aggregation.
OnAfterRemoveLineFromPackage(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Integer) :#
Summary: Event fired after removing line from package assignment.
[IntegrationEvent(false, false)]
local procedure OnAfterRemoveLineFromPackage(var KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var ModifyKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var SequenceLineNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterRemoveLineFromPackage', '', false, false)]
local procedure DoSomethingOnAfterRemoveLineFromPackage(var KVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var ModifyKVSKBADispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var SequenceLineNo: Integer)
begin
end;
Parameters:
KVSKBADispatchHandlingLine: The dispatch handling line that was removed from packageModifyKVSKBADispatchHandlingLine: The modified dispatch handling line after removalSequenceLineNo: The updated sequence line number
Remarks: This event allows subscribers to perform additional processing after dispatch handling lines have been removed from package assignments and sequence numbers updated.
OnBeforeInsertCarrierLevelOneStructure(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Integer, Integer, Integer) :#
Summary: Event fired before inserting carrier level one structure during package calculation.
[IntegrationEvent(false, false)]
local procedure OnBeforeInsertCarrierLevelOneStructure(var TempCurrentDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var TempNewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var LineNo: Integer; var PackageSequenceLineNo: Integer; var SequenceNo: Integer):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeInsertCarrierLevelOneStructure', '', false, false)]
local procedure DoSomethingOnBeforeInsertCarrierLevelOneStructure(var TempCurrentDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var TempNewDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; var LineNo: Integer; var PackageSequenceLineNo: Integer; var SequenceNo: Integer)
begin
end;
Parameters:
TempCurrentDispatchHandlingLine: The current temporary dispatch handling line being processedTempNewDispatchHandlingLine: The new temporary dispatch handling line being createdLineNo: Current line number counterPackageSequenceLineNo: Current package sequence line number counterSequenceNo: Current sequence number counter
Remarks: This event allows subscribers to customize carrier lines before they are inserted into the package structure at level one during structure calculation.
OnBeforeCheckDangerousGoodsPoints(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before checking dangerous goods points limits.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckDangerousGoodsPoints', '', false, false)]
local procedure DoSomethingOnBeforeCheckDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header to validateIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom dangerous goods points validation logic, bypassing the standard points calculation and limit checking.
OnBeforeFindSetDispatchHandlingLineInCheckDangerousGoodsPoints(Record KVSKBADispatchHandlingHeader, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before finding dispatch handling lines for dangerous goods points calculation.
[IntegrationEvent(false, false)]
local procedure OnBeforeFindSetDispatchHandlingLineInCheckDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeFindSetDispatchHandlingLineInCheckDangerousGoodsPoints', '', false, false)]
local procedure DoSomethingOnBeforeFindSetDispatchHandlingLineInCheckDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header contextDispatchHandlingLine: The dispatch handling lines with applied filters
Remarks: This event allows subscribers to modify filters on dispatch handling lines before dangerous goods points calculation, controlling which lines are included.
OnBeforeCalculateDangerousGoodsPoints(Record KVSKBADispatchHandlingHeader, Record KVSKBADispatchHandlingLine, Decimal, Boolean) :#
Summary: Event fired before calculating dangerous goods points for individual lines.
[IntegrationEvent(false, false)]
local procedure OnBeforeCalculateDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var DangerousGoodsPointsItems: Decimal; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCalculateDangerousGoodsPoints', '', false, false)]
local procedure DoSomethingOnBeforeCalculateDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var DangerousGoodsPointsItems: Decimal; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header contextDispatchHandlingLine: The dispatch handling line being calculatedDangerousGoodsPointsItems: The accumulated dangerous goods pointsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom dangerous goods points calculation for individual dispatch handling lines, overriding the standard calculation.
OnAfterCheckDangerousGoodsPoints(Record KVSKBADispatchHandlingHeader, Decimal) :#
Summary: Event fired after checking dangerous goods points limits.
[IntegrationEvent(false, false)]
local procedure OnAfterCheckDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DangerousGoodsPointsItems: Decimal):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCheckDangerousGoodsPoints', '', false, false)]
local procedure DoSomethingOnAfterCheckDangerousGoodsPoints(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DangerousGoodsPointsItems: Decimal)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header that was validatedDangerousGoodsPointsItems: The total calculated dangerous goods points
Remarks: This event allows subscribers to perform additional processing after dangerous goods points validation has completed and limits have been verified.
OnBeforeCheckDangerousGoodsLimitedQuantity(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before checking dangerous goods limited quantity restrictions.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckDangerousGoodsLimitedQuantity(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckDangerousGoodsLimitedQuantity', '', false, false)]
local procedure DoSomethingOnBeforeCheckDangerousGoodsLimitedQuantity(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header to validateIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom dangerous goods limited quantity validation logic, bypassing the standard quantity limit checking.
OnBeforeFindSetCheckDangerousGoodsLimitedQuantity(Record KVSKBADispatchHandlingHeader, Record KVSKBADispatchHandlingLine) :#
Summary: Event fired before finding dispatch handling lines for limited quantity checking.
[IntegrationEvent(false, false)]
local procedure OnBeforeFindSetCheckDangerousGoodsLimitedQuantity(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeFindSetCheckDangerousGoodsLimitedQuantity', '', false, false)]
local procedure DoSomethingOnBeforeFindSetCheckDangerousGoodsLimitedQuantity(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var DispatchHandlingLine: Record "KVSKBADispatchHandlingLine")
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header contextDispatchHandlingLine: The dispatch handling lines with applied filters
Remarks: This event allows subscribers to modify filters on dispatch handling lines before dangerous goods limited quantity checking, controlling which lines are validated.
OnBeforeCheckQuantityCheckDangerousGoodsLimitedQuantity(Record KVSKBADispatchHandlingHeader, Record KVSKBADispatchHandlingLine, Boolean) :#
Summary: Event fired before checking quantity limits for dangerous goods.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckQuantityCheckDangerousGoodsLimitedQuantity(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckQuantityCheckDangerousGoodsLimitedQuantity', '', false, false)]
local procedure DoSomethingOnBeforeCheckQuantityCheckDangerousGoodsLimitedQuantity(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; DispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header contextDispatchHandlingLine: The dispatch handling line being checkedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom quantity limit validation for individual dispatch handling lines, bypassing the standard limited quantity checks.
OnBeforeCheckApplicationAreaForDangerousGoodsSetup(Boolean, Boolean) :#
Summary: Event fired before checking application area setup for dangerous goods.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckApplicationAreaForDangerousGoodsSetup(var SetupIsOk: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckApplicationAreaForDangerousGoodsSetup', '', false, false)]
local procedure DoSomethingOnBeforeCheckApplicationAreaForDangerousGoodsSetup(var SetupIsOk: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SetupIsOk: Returns whether the setup is valid for dangerous goods processingIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom application area validation for dangerous goods functionality, overriding the standard setup checks.
OnAfterCheckApplicationAreaForDangerousGoodsSetup(Record Application Area Setup, Boolean) :#
Summary: Event fired after checking application area setup for dangerous goods.
[IntegrationEvent(false, false)]
local procedure OnAfterCheckApplicationAreaForDangerousGoodsSetup(ApplicationAreaSetup: Record "Application Area Setup"; var SetupIsOk: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnAfterCheckApplicationAreaForDangerousGoodsSetup', '', false, false)]
local procedure DoSomethingOnAfterCheckApplicationAreaForDangerousGoodsSetup(ApplicationAreaSetup: Record "Application Area Setup"; var SetupIsOk: Boolean)
begin
end;
Parameters:
ApplicationAreaSetup: The application area setup recordSetupIsOk: Whether the setup is valid for dangerous goods processing
Remarks: This event allows subscribers to perform additional validation after the application area setup has been checked for dangerous goods functionality requirements.
OnBeforeCreateDispatchHandlingLinesFromDirectTransfer(Record Direct Trans. Header, Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#
Summary: Event fired before creating dispatch handling lines from direct transfer.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlingLinesFromDirectTransfer(var DirectTransHeader: Record "Direct Trans. Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; ShowMessage: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlingLinesFromDirectTransfer', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlingLinesFromDirectTransfer(var DirectTransHeader: Record "Direct Trans. Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; ShowMessage: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
DirectTransHeader: The direct transfer headers to processDispatchHandlingHeader: The dispatch handling header to add lines toShowMessage: Controls whether to show messages about line creation resultsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from direct transfers, bypassing the standard line creation process.
OnBeforeCreateDispatchHandlingLinesFromWarehouseShipment(Record KVSKBADispatchHandlingHeader, Record Warehouse Shipment Header, Boolean) :#
Summary: Event fired before creating dispatch handling lines from warehouse shipments.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlingLinesFromWarehouseShipment(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlingLinesFromWarehouseShipment', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlingLinesFromWarehouseShipment(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var WarehouseShipmentHeader: Record "Warehouse Shipment Header"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header to add lines toWarehouseShipmentHeader: The warehouse shipment headers to processIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from warehouse shipments, bypassing the standard line creation process.
OnBeforeCreateDispatchHandlingLinesFromInventoryPicks(Record Warehouse Activity Header, Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#
Summary: Event fired before creating dispatch handling lines from inventory picks.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlingLinesFromInventoryPicks(var WarehouseActivityHeader: Record "Warehouse Activity Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlingLinesFromInventoryPicks', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlingLinesFromInventoryPicks(var WarehouseActivityHeader: Record "Warehouse Activity Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
WarehouseActivityHeader: The inventory pick headers to processDispatchHandlingHeader: The dispatch handling header to add lines toShowMessage: Controls whether to show messages about line creation resultsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from inventory picks, bypassing the standard line creation process.
OnBeforeCreateDispatchHandlinLinesFromSalesShipments(Record Sales Shipment Header, Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#
Summary: Event fired before creating dispatch handling lines from sales shipments (internal version).
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlinLinesFromSalesShipments(var SalesShipmentHeader: Record "Sales Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlinLinesFromSalesShipments', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlinLinesFromSalesShipments(var SalesShipmentHeader: Record "Sales Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
SalesShipmentHeader: The sales shipment headers to processDispatchHandlingHeader: The dispatch handling header to add lines toShowMessage: Controls whether to show messages about line creation resultsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from sales shipments in the internal processing function.
OnBeforeCreateDispatchHandlingLinesFromTransferShipment(Record Transfer Shipment Header, Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#
Summary: Event fired before creating dispatch handling lines from transfer shipments.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlingLinesFromTransferShipment(var TransferShipmentHeader: Record "Transfer Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlingLinesFromTransferShipment', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlingLinesFromTransferShipment(var TransferShipmentHeader: Record "Transfer Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
TransferShipmentHeader: The transfer shipment headers to processDispatchHandlingHeader: The dispatch handling header to add lines toShowMessage: Controls whether to show messages about line creation resultsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from transfer shipments, bypassing the standard line creation process.
OnBeforeCreateDispatchHandlingLinesFromReturnShipments(Record Return Shipment Header, Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#
Summary: Event fired before creating dispatch handling lines from return shipments.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlingLinesFromReturnShipments(var ReturnShipmentHeader: Record "Return Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlingLinesFromReturnShipments', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlingLinesFromReturnShipments(var ReturnShipmentHeader: Record "Return Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ReturnShipmentHeader: The return shipment headers to processDispatchHandlingHeader: The dispatch handling header to add lines toShowMessage: Controls whether to show messages about line creation resultsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from return shipments, bypassing the standard line creation process.
OnBeforeCreateDispatchHandlingLinesFromPostedServiceShipment(Record Service Shipment Header, Record KVSKBADispatchHandlingHeader, Boolean, Boolean) :#
Summary: Event fired before creating dispatch handling lines from posted service shipments.
[IntegrationEvent(false, false)]
local procedure OnBeforeCreateDispatchHandlingLinesFromPostedServiceShipment(var ServiceShipmentHeader: Record "Service Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCreateDispatchHandlingLinesFromPostedServiceShipment', '', false, false)]
local procedure DoSomethingOnBeforeCreateDispatchHandlingLinesFromPostedServiceShipment(var ServiceShipmentHeader: Record "Service Shipment Header"; var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var ShowMessage: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
ServiceShipmentHeader: The service shipment headers to processDispatchHandlingHeader: The dispatch handling header to add lines toShowMessage: Controls whether to show messages about line creation resultsIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom logic for creating dispatch handling lines from posted service shipments, bypassing the standard line creation process.
OnBeforeMandatoryFieldCheck(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before performing mandatory field checks during dispatch handling release.
[IntegrationEvent(false, false)]
local procedure OnBeforeMandatoryFieldCheck(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeMandatoryFieldCheck', '', false, false)]
local procedure DoSomethingOnBeforeMandatoryFieldCheck(DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header being releasedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom mandatory field validation logic, bypassing or extending the standard field checks during dispatch handling order release.
OnBeforeAssignLinesToPackage(Record KVSKBADispatchHandlingLine, Record KVSKBADispatchHandlingLine, Boolean, Boolean) :#
Summary: Event fired before assigning dispatch handling lines to packages.
[IntegrationEvent(false, false)]
local procedure OnBeforeAssignLinesToPackage(var TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; AssignDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var PreventReCalc: Boolean; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeAssignLinesToPackage', '', false, false)]
local procedure DoSomethingOnBeforeAssignLinesToPackage(var TempDispatchHandlingLine: Record "KVSKBADispatchHandlingLine" temporary; AssignDispatchHandlingLine: Record "KVSKBADispatchHandlingLine"; var PreventReCalc: Boolean; var IsHandled: Boolean)
begin
end;
Parameters:
TempDispatchHandlingLine: The temporary dispatch handling lines to assignAssignDispatchHandlingLine: The package line to assign toPreventReCalc: Controls whether to prevent package structure recalculationIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom package assignment logic, bypassing the standard line assignment process and controlling recalculation behavior.
OnBeforeCheckPackageDispatch(Record KVSKBADispatchHandlingHeader, Boolean) :#
Summary: Event fired before checking package dispatch validation during release.
[IntegrationEvent(false, false)]
local procedure OnBeforeCheckPackageDispatch(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean):
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBADispatchMgt", 'OnBeforeCheckPackageDispatch', '', false, false)]
local procedure DoSomethingOnBeforeCheckPackageDispatch(var DispatchHandlingHeader: Record "KVSKBADispatchHandlingHeader"; var IsHandled: Boolean)
begin
end;
Parameters:
DispatchHandlingHeader: The dispatch handling header being validatedIsHandled: Indicates if the event is handled by a subscriber
Remarks: This event allows subscribers to implement custom package dispatch validation logic, bypassing the standard checks for assigned and unassigned dispatch handling lines.