Skip to content

KVSKBAExtendedCarrierManagment#

Events#

OnBeforePrintPackageNoLabel(Variant, Boolean) :#

Summary: Integration event that allows customization before printing package number labels.

[IntegrationEvent(false, false)]
local procedure OnBeforePrintPackageNoLabel(SourceRecord: Variant; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforePrintPackageNoLabel', '', false, false)]
local procedure DoSomethingOnBeforePrintPackageNoLabel(SourceRecord: Variant; var IsHandled: Boolean)
begin
end;

Parameters:

  • SourceRecord: The source record to be printed (Package No. Information or Extended Package No.)
  • IsHandled: Variable indicating whether a subscriber has handled the printing (set to true to skip default logic)

Remarks: Use this event to implement custom label printing logic or modify the source record before printing

OnAfterPrintPackageNoLabel(Variant) :#

Summary: Integration event that fires after package number label printing is completed.

[IntegrationEvent(false, false)]
local procedure OnAfterPrintPackageNoLabel(SourceRecord: Variant): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnAfterPrintPackageNoLabel', '', false, false)]
local procedure DoSomethingOnAfterPrintPackageNoLabel(SourceRecord: Variant)
begin
end;

Parameters:

  • SourceRecord: The source record that was printed

Remarks: Use this event to perform cleanup or logging after label printing

OnAfterSetDimensionsIntoPackageInformation(Record KVSKBACarrier, Record Package No. Information) :#

Summary: Integration event that fires after dimensions are set into package information from carrier data.

[IntegrationEvent(false, false)]
local procedure OnAfterSetDimensionsIntoPackageInformation(Carrier: Record "KVSKBACarrier"; var PackageNoInformation: Record "Package No. Information"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnAfterSetDimensionsIntoPackageInformation', '', false, false)]
local procedure DoSomethingOnAfterSetDimensionsIntoPackageInformation(Carrier: Record "KVSKBACarrier"; var PackageNoInformation: Record "Package No. Information")
begin
end;

Parameters:

  • Carrier: The carrier record used as source for dimensions
  • PackageNoInformation: The package information record that was updated with dimensions

Remarks: Use this event to perform additional processing after dimensions are copied from carrier to package

OnBeforeModifyInSetPackageInformationCardFromTrackingSpecification(Record Package No. Information, Record Tracking Specification) :#

Summary: Integration event that fires before modifying package information when creating from tracking specification.

[IntegrationEvent(false, false)]
local procedure OnBeforeModifyInSetPackageInformationCardFromTrackingSpecification(var PackageNoInformation: Record "Package No. Information"; var TrackingSpecification: Record "Tracking Specification" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeModifyInSetPackageInformationCardFromTrackingSpecification', '', false, false)]
local procedure DoSomethingOnBeforeModifyInSetPackageInformationCardFromTrackingSpecification(var PackageNoInformation: Record "Package No. Information"; var TrackingSpecification: Record "Tracking Specification" temporary)
begin
end;

Parameters:

  • PackageNoInformation: Package information record to be modified
  • TrackingSpecification: Source tracking specification record

Remarks: Use this event to modify package information fields before the record is updated

OnBeforeInsertInSetPackageInformationCardFromTrackingSpecification(Record Package No. Information, Record Tracking Specification) :#

Summary: Integration event that fires before inserting new package information when creating from tracking specification.

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertInSetPackageInformationCardFromTrackingSpecification(var PackageNoInformation: Record "Package No. Information"; var TrackingSpecification: Record "Tracking Specification" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeInsertInSetPackageInformationCardFromTrackingSpecification', '', false, false)]
local procedure DoSomethingOnBeforeInsertInSetPackageInformationCardFromTrackingSpecification(var PackageNoInformation: Record "Package No. Information"; var TrackingSpecification: Record "Tracking Specification" temporary)
begin
end;

Parameters:

  • PackageNoInformation: Package information record to be inserted
  • TrackingSpecification: Source tracking specification record

Remarks: Use this event to modify package information fields before the record is created

OnAfterCreatePackageNoInformationForLabel(Record KVSKBAExtendedPackageNo, Record Package No. Information) :#

Summary: Integration event that fires after creating package information for label printing.

[IntegrationEvent(false, false)]
local procedure OnAfterCreatePackageNoInformationForLabel(var ExtendedPackageNo: Record "KVSKBAExtendedPackageNo" temporary; var PackageNoInformation: Record "Package No. Information"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnAfterCreatePackageNoInformationForLabel', '', false, false)]
local procedure DoSomethingOnAfterCreatePackageNoInformationForLabel(var ExtendedPackageNo: Record "KVSKBAExtendedPackageNo" temporary; var PackageNoInformation: Record "Package No. Information")
begin
end;

Parameters:

  • ExtendedPackageNo: Source extended package number record
  • PackageNoInformation: Created package information record for label printing

Remarks: Use this event to modify the package information before it is used for label printing

OnBeforeResolveNewCarrierNoCaption(Boolean, Text) :#

Summary: Integration event that allows customization of the new carrier number caption resolution.

[IntegrationEvent(false, false)]
local procedure OnBeforeResolveNewCarrierNoCaption(var IsHandled: Boolean; var NewValue: Text): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeResolveNewCarrierNoCaption', '', false, false)]
local procedure DoSomethingOnBeforeResolveNewCarrierNoCaption(var IsHandled: Boolean; var NewValue: Text)
begin
end;

Parameters:

  • IsHandled: Variable indicating whether a subscriber has handled the caption resolution
  • NewValue: Variable for the resolved caption text (can be set by subscribers)

Remarks: Use this event to provide custom caption text for new carrier number fields

OnBeforeResolveNewCarrierCodeCaption(Text, Boolean) :#

Summary: Integration event that allows customization of the new carrier code caption resolution.

[IntegrationEvent(false, false)]
local procedure OnBeforeResolveNewCarrierCodeCaption(var NewValue: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeResolveNewCarrierCodeCaption', '', false, false)]
local procedure DoSomethingOnBeforeResolveNewCarrierCodeCaption(var NewValue: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • NewValue: Variable for the resolved caption text (can be set by subscribers)
  • IsHandled: Variable indicating whether a subscriber has handled the caption resolution

Remarks: Use this event to provide custom caption text for new carrier code fields

OnBeforeFindBinWithCorrectMaxQty(Record Posted Whse. Receipt Line, Record Bin, Boolean, Boolean) :#

Summary: Integration event that allows customization of bin finding logic based on maximum quantity constraints.

[IntegrationEvent(false, false)]
local procedure OnBeforeFindBinWithCorrectMaxQty(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var Bin: Record "Bin"; var BinFound: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeFindBinWithCorrectMaxQty', '', false, false)]
local procedure DoSomethingOnBeforeFindBinWithCorrectMaxQty(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var Bin: Record "Bin"; var BinFound: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • PostedWhseReceiptLine: Posted warehouse receipt line being processed
  • Bin: Bin record being evaluated for maximum quantity
  • BinFound: Variable indicating whether a suitable bin was found (can be set by subscribers)
  • IsHandled: Variable indicating whether a subscriber has handled the bin finding logic

Remarks: Use this event to implement custom logic for finding bins with correct maximum quantity constraints

OnBeforeFindNextBin(Record Posted Whse. Receipt Line, Record Bin, Boolean) :#

Summary: Integration event that allows customization of the next bin finding logic.

[IntegrationEvent(false, false)]
local procedure OnBeforeFindNextBin(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var Bin: Record "Bin"; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeFindNextBin', '', false, false)]
local procedure DoSomethingOnBeforeFindNextBin(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var Bin: Record "Bin"; var IsHandled: Boolean)
begin
end;

Parameters:

  • PostedWhseReceiptLine: Posted warehouse receipt line being processed
  • Bin: Bin record being used for finding the next suitable bin
  • IsHandled: Variable indicating whether a subscriber has handled the next bin finding logic

Remarks: Use this event to implement custom logic for finding the next suitable bin in put-away operations

OnBeforeDimensionIsEmpty(Record Package No. Information, Boolean, Boolean) :#

Summary: Integration event that allows customization of dimension emptiness check for package information.

[IntegrationEvent(false, false)]
local procedure OnBeforeDimensionIsEmpty(var PackageNoInformation: Record "Package No. Information"; var Result: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeDimensionIsEmpty', '', false, false)]
local procedure DoSomethingOnBeforeDimensionIsEmpty(var PackageNoInformation: Record "Package No. Information"; var Result: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • PackageNoInformation: Package information record being checked for empty dimensions
  • Result: Variable for the result of the emptiness check (can be set by subscribers)
  • IsHandled: Variable indicating whether a subscriber has handled the dimension check

Remarks: Use this event to implement custom logic for determining if package dimensions are empty

OnBeforeResolveDefaultCarrierCodeCaption(Text, Boolean) :#

Summary: Integration event that allows customization of the default carrier code caption resolution.

[IntegrationEvent(false, false)]
local procedure OnBeforeResolveDefaultCarrierCodeCaption(var NewValue: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeResolveDefaultCarrierCodeCaption', '', false, false)]
local procedure DoSomethingOnBeforeResolveDefaultCarrierCodeCaption(var NewValue: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • NewValue: Variable for the resolved caption text (can be set by subscribers)
  • IsHandled: Variable indicating whether a subscriber has handled the caption resolution

Remarks: Use this event to provide custom caption text for default carrier code fields

OnBeforeResolveDoNotSplitPackageQty(Text, Boolean) :#

Summary: Integration event that allows customization of the "do not split package quantity" caption resolution.

[IntegrationEvent(false, false)]
local procedure OnBeforeResolveDoNotSplitPackageQty(var NewValue: Text; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeResolveDoNotSplitPackageQty', '', false, false)]
local procedure DoSomethingOnBeforeResolveDoNotSplitPackageQty(var NewValue: Text; var IsHandled: Boolean)
begin
end;

Parameters:

  • NewValue: Variable for the resolved caption text (can be set by subscribers)
  • IsHandled: Variable indicating whether a subscriber has handled the caption resolution

Remarks: Use this event to provide custom caption text for the do not split package quantity option

OnAfterUpdateAllPackageInfomartionCards(Record Package No. Information) :#

Summary: Integration event that fires after updating all package information cards with consistent carrier codes.

[IntegrationEvent(false, false)]
local procedure OnAfterUpdateAllPackageInfomartionCards(PackageNoInformation: Record "Package No. Information"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnAfterUpdateAllPackageInfomartionCards', '', false, false)]
local procedure DoSomethingOnAfterUpdateAllPackageInfomartionCards(PackageNoInformation: Record "Package No. Information")
begin
end;

Parameters:

  • PackageNoInformation: Source package information record used for updating other records

Remarks: Use this event to perform additional processing after carrier codes are synchronized across package information records

OnBeforeSetTableViewInPrintPackageNoLabel(Report KVSKBAPackageNoLabel, Record Package No. Information) :#

[IntegrationEvent(false, false)]
local procedure OnBeforeSetTableViewInPrintPackageNoLabel(var PackageNoLabel: Report "KVSKBAPackageNoLabel"; PackageNoInformation: Record "Package No. Information"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeSetTableViewInPrintPackageNoLabel', '', false, false)]
local procedure DoSomethingOnBeforeSetTableViewInPrintPackageNoLabel(var PackageNoLabel: Report "KVSKBAPackageNoLabel"; PackageNoInformation: Record "Package No. Information")
begin
end;

OnBeforeSetPackageInformationCardFromTrackingSpecification(Record Tracking Specification, Boolean) :#

Summary: Integration event that allows customization before setting package information from tracking specification.

[IntegrationEvent(false, false)]
local procedure OnBeforeSetPackageInformationCardFromTrackingSpecification(TrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeSetPackageInformationCardFromTrackingSpecification', '', false, false)]
local procedure DoSomethingOnBeforeSetPackageInformationCardFromTrackingSpecification(TrackingSpecification: Record "Tracking Specification" temporary; var IsHandled: Boolean)
begin
end;

Parameters:

  • TrackingSpecification: Source tracking specification record
  • IsHandled: Variable indicating whether a subscriber has handled the package information creation

Remarks: Use this event to implement custom logic or skip the standard package information creation process

OnBeforeSetPackageInfoMustExist(Record Item Tracking Code) :#

Summary: Integration event that fires before setting package info must exist flags on item tracking codes.

[IntegrationEvent(false, false)]
local procedure OnBeforeSetPackageInfoMustExist(var ItemTrackingCode: Record "Item Tracking Code"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeSetPackageInfoMustExist', '', false, false)]
local procedure DoSomethingOnBeforeSetPackageInfoMustExist(var ItemTrackingCode: Record "Item Tracking Code")
begin
end;

Parameters:

  • ItemTrackingCode: Item tracking code record to be modified

Remarks: Use this event to customize which package info requirements are set when package specific tracking is enabled

OnAfterSetBinContentFilter(Record Posted Whse. Receipt Line, Record Put-away Template Line, Record Bin Content) :#

Summary: Integration event that fires after setting bin content filters for put-away operations.

[IntegrationEvent(false, false)]
local procedure OnAfterSetBinContentFilter(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var PutAwayTemplateLine: Record "Put-away Template Line"; var BinContent: Record "Bin Content"): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnAfterSetBinContentFilter', '', false, false)]
local procedure DoSomethingOnAfterSetBinContentFilter(var PostedWhseReceiptLine: Record "Posted Whse. Receipt Line"; var PutAwayTemplateLine: Record "Put-away Template Line"; var BinContent: Record "Bin Content")
begin
end;

Parameters:

  • PostedWhseReceiptLine: Posted warehouse receipt line being processed
  • PutAwayTemplateLine: Put-away template line with settings
  • BinContent: Bin content record with applied filters

Remarks: Use this event to add additional filters or modify existing filters on bin content for put-away operations

OnBeforeSetPackageInformationCardFromWhseItemTrackingLine(Record Whse. Item Tracking Line, Boolean) :#

Summary: Integration event that allows customization before setting package information from warehouse item tracking line.

[IntegrationEvent(false, false)]
local procedure OnBeforeSetPackageInformationCardFromWhseItemTrackingLine(var WhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeSetPackageInformationCardFromWhseItemTrackingLine', '', false, false)]
local procedure DoSomethingOnBeforeSetPackageInformationCardFromWhseItemTrackingLine(var WhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary; var IsHandled: Boolean)
begin
end;

Parameters:

  • WhseItemTrackingLine: Source warehouse item tracking line record
  • IsHandled: Variable indicating whether a subscriber has handled the package information creation

Remarks: Use this event to implement custom logic or skip the standard package information creation process for warehouse tracking

OnBeforeModifyInSetPackageInformationCardFromWhseItemTrackingLine(Record Package No. Information, Record Whse. Item Tracking Line) :#

Summary: Integration event that fires before modifying package information when creating from warehouse item tracking line.

[IntegrationEvent(false, false)]
local procedure OnBeforeModifyInSetPackageInformationCardFromWhseItemTrackingLine(var PackageNoInformation: Record "Package No. Information"; WhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeModifyInSetPackageInformationCardFromWhseItemTrackingLine', '', false, false)]
local procedure DoSomethingOnBeforeModifyInSetPackageInformationCardFromWhseItemTrackingLine(var PackageNoInformation: Record "Package No. Information"; WhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary)
begin
end;

Parameters:

  • PackageNoInformation: Package information record to be modified
  • WhseItemTrackingLine: Source warehouse item tracking line record

Remarks: Use this event to modify package information fields before the record is updated from warehouse tracking data

OnBeforeInsertInSetPackageInformationCardFromWhseItemTrackingLine(Record Package No. Information, Record Whse. Item Tracking Line) :#

Summary: Integration event that fires before inserting new package information when creating from warehouse item tracking line.

[IntegrationEvent(false, false)]
local procedure OnBeforeInsertInSetPackageInformationCardFromWhseItemTrackingLine(var PackageNoInformation: Record "Package No. Information"; WhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeInsertInSetPackageInformationCardFromWhseItemTrackingLine', '', false, false)]
local procedure DoSomethingOnBeforeInsertInSetPackageInformationCardFromWhseItemTrackingLine(var PackageNoInformation: Record "Package No. Information"; WhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary)
begin
end;

Parameters:

  • PackageNoInformation: Package information record to be inserted
  • WhseItemTrackingLine: Source warehouse item tracking line record

Remarks: Use this event to modify package information fields before the record is created from warehouse tracking data

OnBeforeConfirmCarrierCodeModification(Record Package No. Information, Record Package No. Information, Boolean, Boolean, Boolean) :#

Summary: Integration event that allows customization of carrier code modification confirmation logic.

[IntegrationEvent(false, false)]
local procedure OnBeforeConfirmCarrierCodeModification(PackageNoInformation: Record "Package No. Information"; xPackageNoInformation: Record "Package No. Information"; var ReturnValue: Boolean; var SkipConfirm: Boolean; var IsHandled: Boolean): 
[EventSubscriber(ObjectType::Codeunit, Codeunit::"KVSKBAExtendedCarrierManagment", 'OnBeforeConfirmCarrierCodeModification', '', false, false)]
local procedure DoSomethingOnBeforeConfirmCarrierCodeModification(PackageNoInformation: Record "Package No. Information"; xPackageNoInformation: Record "Package No. Information"; var ReturnValue: Boolean; var SkipConfirm: Boolean; var IsHandled: Boolean)
begin
end;

Parameters:

  • PackageNoInformation: Current package information record
  • xPackageNoInformation: Previous version of package information record
  • ReturnValue: Variable for the confirmation result (can be set by subscribers)
  • SkipConfirm: Variable indicating whether to skip the confirmation dialog (can be set by subscribers)
  • IsHandled: Variable indicating whether a subscriber has handled the confirmation logic

Remarks: Use this event to implement custom confirmation logic or bypass confirmation under specific conditions