Properties

Property Value
Object Type Codeunit
Object Subtype Normal
Object ID 23044918
Accessibility Level Public

Events

OnBeforeGetWhseReceipt()

OnBeforeGetWhseReceipt event executes inside GetReceiptDocument procedure in Warehouse Insight’s Receiving Management Codeunit before the procedure get the warehouse receipt document by its default process. Subscribing to this event, the developer can customize the process to get warehouse receipt document.

Syntax

OnBeforeGetWhseReceipt(var precWhseReceiptHeader: Record “Warehouse Receipt Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)

Parameters
Parameter Type Description
precWhseReceiptHeader Record “Warehouse Receipt Header” Record variable with all fields from warehouse receipt header table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.
pbHandled Boolean Boolean variable to check if warehouse receipt document is handled. Set the value to true to skip the default process.

OnAfterFilterWhseReceiptLines()

OnAfterFilterWhseReceiptLines event executes inside GetReceiptDocument procedure in Warehouse Insight’s Receiving Management Codeunit after warehouse receipt lines are filtered with sorting sequence number and receipt number. Subscribing to this event, developers can customize and/or extend the default process with additional filters. Preparation of record references is the next step in GetReceiptDocument procedure after OnAfterFilterWhseReceiptLines event.

Syntax

OnAfterFilterWhseReceiptLines(var precWhseReceiptLine: Record “Warehouse Receipt Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precWhseReceiptLine Record “Warehouse Receipt Line” Record variable with access to all fields from warehouse receipt line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnAfterGetWhseReceipt()

OnAfterGetWhseReceipt event executes inside GetReceiptDocument procedure in Warehouse Insight’s Receiving Management Codeunit after the procedure get the warehouse receipt document by its default process. Subscribing to this event, the developer can customize and/or extend the process after getting warehouse receipt document.

Syntax

OnAfterGetWhseReceipt(var precWhseReceiptHeader: Record “Warehouse Receipt Header”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precWhseReceiptHeader Record “Warehouse Receipt Header” Record variable with access to all fields from warehouse receipt header table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnBeforeUpdateWhseReceiptLine()

OnBeforeUpdateWhseReceiptLine event executes inside UpdateReceiptLine procedure in Warehouse Insight’s Receiving Management Codeunit before the default process of the warehouse receipt line update begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforeUpdateWhseReceiptLine(var precWhseReceiptLine: Record “Warehouse Receipt Line”, var pdQtyToReceive: Decimal, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pdtExpirationDate: Date, var lcodBinCode: Code[20], var lcodLPNumber: Code[20], var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)

Parameters
Parameter Type Description
precWhseReceiptLine Record “Warehouse Receipt Line” Record variable with all fields from warehouse receipt line table.
pdQtyToReceive Decimal Decimal variable of quantity to receive from ptrecEventParams.
pcodSerialNumber Code[50] Code variable of serial number from ptrecEventParams.
pcodLotNumber Code[50] Code variable of lot number from ptrecEventParams.
pdtExpirationDate Date Date variable of expiration date from ptrecEventParams.
lcodBinCode Code[20] Code variable of bin from ptrecEventParams.
lcodLPNumber Code[20] Code variable of license plate number from ptrecEventParams.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.
pbHandled Boolean Boolean variable to check if warehouse receipt is handled. Set the value to true to skip the default update process.

OnAfterUpdateWhseReceiptLine()

OnAfterUpdateWhseReceiptLine event executes inside UpdateReceiptLine procedure in Warehouse Insight’s Receiving Management Codeunit after the default process of the warehouse receipt line update finishes. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnAfterUpdateWhseReceiptLine(var precWhseReceiptLine: Record “Warehouse Receipt Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precWhseReceiptLine Record “Warehouse Receipt Line” Record variable with all fields from warehouse receipt line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnBeforePostWhseReceipt()

OnBeforePostWhseReceipt event executes inside postWhseReceipt procedure in Warehouse Insight’s Receiving Management Codeunit before the default process of the warehouse receipt line post begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforePostWhseReceipt(var precWhseReceiptHeader: Record “Warehouse Receipt Header”, var precWhseReceiptLine: Record “Warehouse Receipt Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precWhseReceiptHeader Record “Warehouse Receipt Header” Record variable with all fields from warehouse receipt header table.
precWhseReceiptLine Record “Warehouse Receipt Line” Record variable with all fields from warehouse receipt line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnAfterFilterLookupWhseRcptHeaders()

OnAfterFilterLookupWhseRcptHeaders event executes inside searchWhseReceipts procedure in Warehouse Insight’s Receiving Management Codeunit after warehouse receipts are filtered with location code, assigned docs and user if applicable. Developers can customize and/or extend the default process for the warehouse receipt list lookup by subscribing to this event. The following default search process will not proceed if there are return results in precWhseReceiptHeader after the event runs.

Syntax

OnAfterFilterLookupWhseRcptHeaders(var precWhseReceiptHeader: Record “Warehouse Receipt Header”, var pbOnlyAssignedDocs: Boolean, var pcodUser: Code[50], var psFilter: Text)

Parameters
Parameter Type Description
precWhseReceiptHeader Record “Warehouse Receipt Header” Record variable with all fields from warehouse receipt header table.
pbOnlyAssignedDocs Boolean Boolean variable of assigned docs for permission check.
pcodUser Code[50] Code variable of user.
psFilter Text Text variable of filter input information.

OnAfterFilterLookupWhseRcptLines()

OnAfterFilterLookupWhseRcptLines event executes inside searchWhseReceipts procedure in Warehouse Insight’s Receiving Management Codeunit after warehouse receipt lines are filtered with warehouse receipt header number, quantity outstanding, and item number if applicable. Developers can customize and/or extend the default process for the warehouse receipt line lookup by subscribing to this event. The following default search process on warehouse receipt line does not proceed if there are return results in precWhseReceiptLine after the event runs.

Syntax

OnAfterFilterLookupWhseRcptLines(var precWhseReceiptLine: Record “Warehouse Receipt Line”, var psFilter: Text, var pcodItemNumber: Code[20])

Parameters
Parameter Type Description
precWhseReceiptLine Record “Warehouse Receipt Line” Record variable with all fields from warehouse receipt line table.
psFilter Text Text variable of filter input information.
pcodItemNumber Code[20] Code variable of item number.

OnBeforeGetPurchaseOrder()

OnBeforeGetPurchaseOrder event executes inside GetPurchaseOrder procedure in Warehouse Insight’s Receiving Management Codeunit before the default process begins to get the purchase order. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforeGetPurchaseOrder(var precPurchaseHeader: Record “Purchase Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)

Parameters
Parameter Type Description
precPurchaseHeader Record “Purchase Header” Record variable with all fields from warehouse receipt header table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.
pbHandled Boolean Boolean variable to check if purchase order is handled. Set the value to true to skip the default get process.

OnAfterFilterPurchaseLines()

OnAfterFilterPurchaseLines event executes inside GetPurchaseOrder procedure in Warehouse Insight’s Receiving Management Codeunit after the default filter process to get purchase order lines based on document, product, and order information. Developers can customize and/or extend the default process with additional filters by subscribing to this event.

Syntax

OnAfterFilterPurchaseLines(var precPurchaseLine: Record “Purchase Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precPurchaseLine Record “Purchase Line” Record variable of all fields from purchase line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnAfterGetPurchaseOrder()

OnAfterGetPurchaseOrder event executes inside GetPurchaseOrder procedure in Warehouse Insight’s Receiving Management Codeunit after the default process has already retrieved purchase order information. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnAfterGetPurchaseOrder(var precPurchaseHeader: Record “Purchase Header”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precPurchaseHeader Record “Purchase Header” Record variable of all fields from purchase header table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnBeforeUpdatePurchaseLine()

OnBeforeUpdatePurchaseLine event executes inside UpdatePurchaseLine procedure in Warehouse Insight’s Receiving Management Codeunit before the default process of the purchase line update begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforeUpdatePurchaseLine(var precPurchaseLine: Record “Purchase Line”, var pdQtyToReceive: Decimal, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pdtExpirationDate: Date, var lcodBinCode: Code[20], var lcodLPNumber: Code[20], var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)

Parameters
Parameter Type Description
precPurchaseLine Record “Purchase Line” Record variable with all fields from purchase line table.
pdQtyToReceive Decimal Decimal variable of quantity to receive from ptrecEventParams.
pcodSerialNumber Code[50] Code variable of serial number from ptrecEventParams.
pcodLotNumber Code[50] Code variable of lot number from ptrecEventParams.
pdtExpirationDate Date Date variable of expiration date from ptrecEventParams.
lcodBinCode Code[20] Code variable of bin from ptrecEventParams.
lcodLPNumber Code[20] Code variable of license plate number from ptrecEventParams.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.
pbHandled Boolean Boolean variable to check if purchase line is handled. Set the value to true to skip the default update process.

OnAfterUpdatePurchaseLine()

OnAfterUpdatePurchaseLine event executes inside UpdatePurchaseLine procedure in Warehouse Insight’s Receiving Management Codeunit after the default process has updated purchase line information. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnAfterUpdatePurchaseLine(var precPurchaseLine: Record “Purchase Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precPurchaseLine Record “Purchase Line” Record variable of all fields from purchase line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnBeforePostPurchaseOrder()

OnBeforePostPurchaseOrder event executes inside postPurchaseOrder procedure in Warehouse Insight’s Receiving Management Codeunit before the default process posts the purchase order after setting purchase line and purchase header. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforePostPurchaseOrder(var precPurchaseHeader: Record “Purchase Header”, var precPurchaseLine: Record “Purchase Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precPurchaseHeader Record “Purchase Header” Record variable of all fields from purchase header table.
precPurchaseLine Record “Purchase Line” Record variable of all fields from purchase line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnAfterFilterLookupPurchaseHeaders()

OnAfterFilterLookupPurchaseHeaders event executes inside searchPurchaseOrders procedure in Warehouse Insight’s Receiving Management Codeunit after the default filter process to get purchase header based on document, user, and order status information. Developers can customize and/or extend the default process with additional filters by subscribing to this event.

Syntax

OnAfterFilterLookupPurchaseHeaders(var precPurchaseHeader: Record “Purchase Header”, var pbOnlyAssignedDocs: Boolean, var pcodUser: Code[50], var psFilter: Text)

Parameters
Parameter Type Description
precPurchaseHeader Record “Purchase Header” Record variable of all fields from purchase header table.
pbOnlyAssignedDocs Boolean Boolean variable of assigned docs for permission check.
pcodUser Code[50] Code variable of user.
psFilter Text Text variable of filter input information.

OnAfterFilterLookupPurchaseLines()

OnAfterFilterLookupPurchaseLines event executes inside searchPurchaseOrders procedure in Warehouse Insight’s Receiving Management Codeunit after the default filter process to get purchase lines based on document, user, and order status information. Developers can customize and/or extend the default process with additional filters by subscribing to this event.

Syntax

OnAfterFilterLookupPurchaseLines(var precPurchaseLine: Record “Purchase Line”, var psFilter: Text, var pcodItemNumber: Code[20])

Parameters
Parameter Type Description
precPurchaseLine Record “Purchase Line” Record variable of all fields from purchase line table.
psFilter Text Text variable of filter input information.
pcodItemNumber Code[20] Code variable of item number.

OnBeforeGetTransferOrder()

OnBeforeGetTransferOrder event executes inside postPurchaseOrder procedure in Warehouse Insight’s Receiving Management Codeunit before the default process begins to get transfer order. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforeGetTransferOrder(var precTransferHeader: Record “Transfer Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)

Parameters
Parameter Type Description
precTransferHeader Record “Transfer Header” Record variable of all fields from transfer order table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.
pbHandled Boolean Boolean variable to check if transfer order is handled. Set the value to true to skip the default get process.

OnAfterFilterTransferLines()

OnAfterFilterTransferLines event executes inside GetTransferOrder procedure in Warehouse Insight’s Receiving Management Codeunit after the default filter process to get transfer lines based on document, item, and transfer code information. Developers can customize and/or extend the default process with additional filters by subscribing to this event.

Syntax

OnAfterFilterTransferLines(var precTransferLine: Record “Transfer Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precTransferLine Record “Transfer Line” Record variable of all fields from transfer line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnAfterGetTransferOrder()

OnAfterGetTransferOrder event executes inside GetTransferOrder procedure in Warehouse Insight’s Receiving Management Codeunit after the default process finishes getting the transfer order. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnAfterGetTransferOrder(var precTransferHeader: Record “Transfer Header”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precTransferHeader Record “Transfer Header” Record variable of all fields from transfer header table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnBeforeUpdateTransferLine()

OnBeforeUpdateTransferLine event executes inside UpdateTransferLine procedure in Warehouse Insight’s Receiving Management Codeunit before the default process of the purchase line update begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforeUpdateTransferLine(var precTransferLine: Record “Transfer Line”, var pdQtyToReceive: Decimal, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pdtExpirationDate: Date, var lcodBinCode: Code[20], var lcodLPNumber: Code[20], var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)

Parameters
Parameter Type Description
precTransferLine Record “Transfer Line” Record variable of all fields from transfer line table.
pdQtyToReceive Decimal Decimal variable of quantity to receive from ptrecEventParams.
pcodSerialNumber Code[50] Code variable of serial number from ptrecEventParams.
pcodLotNumber Code[50] Code variable of lot number from ptrecEventParams.
pdtExpirationDate Date Date variable of expiration date from ptrecEventParams.
lcodBinCode Code[20] Code variable of bin from ptrecEventParams.
lcodLPNumber Code[20] Code variable of license plate number from ptrecEventParams.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.
pbHandled Boolean Boolean variable to check if transfer line is handled. Set the value to true to skip the default update process.

OnAfterUpdateTransferLine()

OnAfterUpdateTransferLine event executes inside UpdateTransferLine procedure in Warehouse Insight’s Receiving Management Codeunit after the default process has already updated transfer line information. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnAfterUpdateTransferLine(var precTransferLine: Record “Transfer Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precTransferLine Record “Transfer Line” Record variable of all fields from transfer line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnBeforePostTransferOrder()

OnBeforePostTransferOrder event executes inside postTransferOrder procedure in Warehouse Insight’s Receiving Management Codeunit before the default process posts the transfer order after setting transfer line and transfer header. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.

Syntax

OnBeforePostTransferOrder(var precTransferHeader: Record “Transfer Header”, var precTransferLine: Record “Transfer Line”, var ptrecEventParams: Record “IWX Event Param” temporary)

Parameters
Parameter Type Description
precTransferHeader Record “Transfer Header” Record variable of all fields from transfer header table.
precTransferLine Record “Transfer Line” Record variable of all fields from transfer line table.
ptrecEventParams Record “IWX Event Param” The event context with all variables from the scanner.

OnAfterFilterLookupTransferHeaders()

OnAfterFilterLookupTransferHeaders event executes inside searchTransferOrders procedure in Warehouse Insight’s Receiving Management Codeunit after the default filter process to get transfer header based on document, user, and order status information. Developers can customize and/or extend the default process with additional filters by subscribing to this event.

Syntax

OnAfterFilterLookupTransferHeaders(var precTransferHeader: Record “Transfer Header”, var pbOnlyAssignedDocs: Boolean, var pcodUser: Code[50], var psFilter: Text)

Parameters
Parameter Type Description
precTransferHeader Record “Transfer Header” Record variable with all fields from transfer header table.
pbOnlyAssignedDocs Boolean Boolean variable of assigned docs for permission check.
pcodUser Code[50] Code variable of user.
psFilter Text Text variable of filter input information.

OnAfterFilterLookupTransferLines()

OnAfterFilterLookupTransferLines event executes inside searchTransferOrders procedure in Warehouse Insight’s Receiving Management Codeunit after the default filter process to get transfer lines based on document, quantity, and item information. Developers can customize and/or extend the default process with additional filters by subscribing to this event.

Syntax

OnAfterFilterLookupTransferLines(var precTransferLine: Record “Transfer Line”, var psFilter: Text, var pcodItemNumber: Code[20])

Parameters
Parameter Type Description
precTransferLine Record “Transfer Line” Record variable with all fields from transfer line table.
psFilter Text Text variable of filter input information.
pcodItemNumber Code[20] Code variable of item number.

OnBeforeAddDocToLookupList()

OnBeforeAddDocToLookupList event executes inside addDocumentToList procedure in Warehouse Insight’s Receiving Management Codeunit before the default insert process of the document list begins. The event happens after the field assignments for ptrecDocList. Developers can customize and/or extend the default insert process with additional functionalities by subscribing to this event.

Syntax

OnBeforeAddDocToLookupList(var ptrecDocList: Record “WHI Document List Buffer”, var pbHandled: Boolean)

Parameters
Parameter Type Description
ptrecDocList Record “WHI Document List Buffer” Record variable of all fields from Warehouse Insight’s Document List Buffer table
pbHandled Boolean Boolean variable to check if document list is handled. Set the value to true to skip the default insert process.