Properties
Property | Value |
Object Type | Codeunit |
Object Subtype | Normal |
Object ID | 23044920 |
Accessibility Level | Public |
Events
OnBeforeGetWhseActivityDocument()
OnBeforeGetWhseActivityDocument event executes inside getWarehouseActivityDocument procedure in Warehouse Insight’s Activity Management Codeunit before the procedure get the warehouse activity document by its default process. Subscribing to this event, the developer can customize the process to get warehouse activity document.
Syntax
OnBeforeGetWhseActivityDocument(var precWhseActivityHeader: Record “Warehouse Activity Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | Record variable with all fields from warehouse activity header table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
pbHandled | Boolean | Boolean variable to check if document list is handled. Set the value to true to skip the default get process. |
OnBeforeGetActivityDocument()
OnBeforeGetActivityDocument event executes inside getWarehouseActivityDocument procedure in WHI Activity Management Codeunit before the procedure gets the warehouse activity document by its default process. Subscribing to this event, the developer can customize the process to get warehouse activity document.
Syntax
OnBeforeGetActivityDocument(var precWhseActivityHeader: Record “Warehouse Activity Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | Record variable with all fields from warehouse activity header table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
pbsOutput | BigText | The output text to return back to the device. |
pbHandled | Boolean | Boolean variable to check if document list is handled. Set the value to true to skip the default get process. |
OnAfterFilterWhseActivityLines()
OnAfterFilterWhseActivityLines event executes inside getWarehouseActivityDocument procedure in Warehouse Insight’s Activity Management Codeunit after warehouse activity lines are filtered with location, sorting sequence, and tracking information. Subscribing to this event, the developers can customize and/or extend the default process with additional filters. Preparation of record references is the next step in getWarehouseActivityDocument procedure after OnAfterFilterWhseActivityLines event.
Syntax
OnAfterFilterWhseActivityLines(var precWhseActivityLine: Record “Warehouse Activity Line”, var ptrecEventParams: Record “IWX Event Param” temporary)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
OnAfterGetWhseActivityDocument()
OnAfterGetWhseActivityDocument event executes inside getWarehouseActivityDocument procedure in Warehouse Insight’s Activity Management Codeunit after the procedure gets the warehouse activity document by its default process. Subscribing to this event, the developer can customize and/or extend the process after getting warehouse activity document.
Syntax
OnAfterGetWhseActivityDocument(var precWhseActivityHeader: Record “Warehouse Activity Header”, var ptrecEventParams: Record “IWX Event Param” temporary)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | Record variable with all fields from warehouse activity header table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
OnAfterGetActivityDocument()
OnAfterGetActivityDocument event executes inside getWarehouseActivityDocument procedure in WHI Activity Management Codeunit after the procedure gets the warehouse activity document by its default process. Subscribing to this event, the developer can customize and/or extend the process after getting warehouse activity document.
Syntax
OnAfterGetActivityDocument(var precWhseActivityHeader: Record “Warehouse Activity Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | Record variable with all fields from warehouse activity header table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
pbsOutput | BigText | The output text to return back to the device. |
OnBeforeRegisterWhseActivity()
OnBeforeRegisterWhseActivity event executes inside registerActivityDocument procedure in Warehouse Insight’s Activity Management Codeunit before the default process of the warehouse activity line register or post begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.
Syntax
OnBeforeRegisterWhseActivity(var precWhseActivityHeader: Record “Warehouse Activity Header”, var precWhseActivityLine: Record “Warehouse Activity Line”, var ptrecEventParams: Record “IWX Event Param” temporary)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | Record variable with all fields from warehouse activity header table. |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
OnBeforeUpdateWhseActivityLine()
OnBeforeUpdateWhseActivityLine event executes inside UpdateWarehouseActivtyLine procedure in Warehouse Insight’s Activity Management Codeunit before the default process of the warehouse shipment line update begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.
Syntax
OnBeforeUpdateWhseActivityLine(var precWhseActivityLine: Record “Warehouse Activity Line”, var pdQtyToShip: 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 |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
pdQtyToShip | Decimal | Decimal variable of quantity to ship 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 activity line is handled. Set the value to true to skip the default update process. |
OnBeforeUpdateActivityLine()
OnBeforeUpdateActivityLine event executes inside UpdateWarehouseActivtyLine procedure in WHI Activity Management Codeunit before the default process of the warehouse shipment line update begins. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.
Syntax
OnBeforeUpdateActivityLine(var precWhseActivityLine: Record “Warehouse Activity Line”, var pdQtyToShip: 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 pbsOutput: BigText, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
pdQtyToShip | Decimal | Decimal variable of quantity to ship 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. |
pbsOutput | BigText | The output text to return to the device. |
pbHandled | Boolean | Boolean variable to check if warehouse activity line is handled. Set the value to true to skip the default update process. |
OnAfterUpdateWhseActivityLine()
OnAfterUpdateWhseActivityLine event executes inside UpdateWarehouseActivtyLine procedure in Warehouse Insight’s Activity Management Codeunit after the default process of the warehouse activity line update finishes. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.
Syntax
OnAfterUpdateWhseActivityLine(var precWhseActivityLine: Record “Warehouse Activity Line”, var ptrecEventParams: Record “IWX Event Param” temporary)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
OnAfterUpdateActivityLine()
OnAfterUpdateActivityLine event executes inside UpdateWarehouseActivtyLine procedure in WHI Activity Management Codeunit after the default process of the warehouse activity line update finishes. Developers can customize and/or extend the process with additional functionalities by subscribing to this event.
Syntax
OnAfterUpdateActivityLine(var precWhseActivityLine: Record “Warehouse Activity Line”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
ptrecEventParams | Record “IWX Event Param” | The event context with all variables from the scanner. |
pbsOutput | BigText | The output text to return to the device. |
OnAfterFilterLookupWhseActivityHeaders()
OnAfterFilterLookupWhseActivityHeaders event executes inside searchActivityDocuments procedure in Warehouse Insight’s Activity Management Codeunit after warehouse activity documents are filtered with location code, document type, assigned docs and user (if applicable). Developers can customize and/or extend the process for the warehouse activity document lookup by subscribing to this event. The following default search process on warehouse activity header does not proceed if there are return results in precWhseActivityHeader after the event runs.
Syntax
OnAfterFilterLookupWhseActivityHeaders(var precWhseActivityHeader: Record “Warehouse Activity Header”, var pbOnlyAssignedDocs: Boolean, var pcodUser: Code[50], var psFilter: Text)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | Record variable with all fields from warehouse activity 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. |
OnAfterFilterLookupWhseActivityLines()
OnAfterFilterLookupWhseActivityLines event executes inside searchActivityDocuments procedure in Warehouse Insight’s Activity Management Codeunit after warehouse activity lines are filtered with warehouse activity header number, quantity outstanding, item, serial and lot number if applicable. Developers can customize and/or extend the default process for the warehouse activity line lookup by subscribing to this event. The following default search process on warehouse activity line does not proceed if there are return results in precWhseActivityLine after the event runs.
Syntax
OnAfterFilterLookupWhseActivityLines(var precWhseShiprecWhseActivityLinepmentLine: Record “Warehouse Activity Line”, var psFilter: Text, var pcodItemNumber: Code[20], var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50])
Parameters
Parameter | Type | Description |
precWhseShiprecWhseActivityLinepmentLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity header table. |
psFilter | Text | Text variable of filter input information. |
pcodItemNumber | Code[20] | Code variable of item number. |
pcodSerialNumber | Code[50] | Code variable of serial number. |
pcodLotNumber | Code[50] | Code variable of lot number. |
OnBeforeManualSplitAutoHandlePlaceLine()
Called when the split line menu option is executed and an auto split is required for the corresponding place line. Only applicable when line is warehouse tracked.
Syntax
OnBeforeManualSplitAutoHandlePlaceLine(var precSourceWhseActivityLine: Record “Warehouse Activity Line”, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precSourceWhseActivityLine | Record “Warehouse Activity Line” | The line being manually split |
pbHandled | Boolean | True if the base application logic should be executed. False if handled via the event subscription. |
OnBeforeProcessAutoShip()
Called before the processing of the updating of warehouse shipment lines for a pick.
Syntax
OnBeforeProcessAutoShip(var precWhseActivityLine: Record “Warehouse Activity Line”, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pcodPackageNumber: Code[50], var pdtExpirationDate: Date, var pbRemove: Boolean, var pdChangeQty: Decimal, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precSourceWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line being updated. |
pbHandled | Boolean | True if the base application logic should be executed. False if handled via the event subscription. |
pcodSerialNumber | Code[50] | The serial number. |
pcodLotNumber | Code[50] | The lot number. |
pcodPackageNumber | Code[50] | The package number. |
pdtExpirationDate | Date | The expiration date. |
pbRemove | Boolean | True if the quantity/tracking is being removed. False if adding. |
pdChangeQty | Decimal | The quantity changed. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterProcessAutoShip()
Called after the processing of the updating of warehouse shipment lines for a pick.
Syntax
OnAfterProcessAutoShip(var precWhseActivityLine: Record “Warehouse Activity Line”, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pcodPackageNumber: Code[50], var pdtExpirationDate: Date, var pbRemove: Boolean, var pdChangeQty: Decimal)
Parameters
Parameter | Type | Description |
precSourceWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line being updated. |
pcodSerialNumber | Code[50] | The serial number. |
pcodLotNumber | Code[50] | The lot number. |
pcodPackageNumber | Code[50] | The package number. |
pdtExpirationDate | Date | The expiration date. |
pbRemove | Boolean | True if the quantity/tracking is being removed. False if adding. |
pdChangeQty | Decimal | The quantity changed. |
OnBeforeProcessAutoTakePlace()
Called before handling of the auto take/place occurs.
Syntax
OnBeforeProcessAutoTakePlace(var precActivityLine: Record “Warehouse Activity Line”, var pcodBinCode: Code[20], var pdQtyToHandle: Decimal, var pbRemove: Boolean, var pbAutoSplit: Boolean, var ptrecCommentLine: Record “Comment Line” temporary, pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precActivityLine | Record “Warehouse Activity Line” | The activity line being updated. |
pcodBinCode | Code[20] | The bin code supplied. |
pdQtyToHandle | Decimal | The quantity to handle. |
pbRemove | Boolean | True if the quantity/tracking is being removed. False if adding. |
pbAutoSplit | Boolean | True if splitting should occur; false if not. |
ptrecCommentLine | Record “Comment Line” | A buffer containing the modified lines. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterProcessAutoTakePlace()
Called before handling of the auto take/place occurs.
Syntax
OnAfterProcessAutoTakePlace(var precActivityLine: Record “Warehouse Activity Line”, var pcodBinCode: Code[20], var pdQtyToHandle: Decimal, var pbRemove: Boolean, var pbAutoSplit: Boolean, var ptrecCommentLine: Record “Comment Line” temporary)
Parameters
Parameter | Type | Description |
precActivityLine | Record “Warehouse Activity Line” | The activity line being updated. |
pcodBinCode | Code[20] | The bin code supplied. |
pdQtyToHandle | Decimal | The quantity to handle. |
pbRemove | Boolean | True if the quantity/tracking is being removed. False if adding. |
pbAutoSplit | Boolean | True if splitting should occur; false if not. |
ptrecCommentLine | Record “Comment Line” | A buffer containing the modified lines. |
OnBeforeAssignPickTote()
Called before assigning a license plate (tote) to a pick.
Syntax
OnBeforeAssignPickTote(var precWhseActivityLine: Record “Warehouse Activity Line”, var precLPHeader: Record “IWX LP Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
precLPHeader | Record “IWX LP Header” | The license plate being assigned. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterAssignPickTote()
Called after assigning a license plate (tote) to a pick.
Syntax
OnAfterAssignPickTote(var precWhseActivityLine: Record “Warehouse Activity Line”, var precLPHeader: Record “IWX LP Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
precLPHeader | Record “IWX LP Header” | The license plate being assigned. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
OnBeforeAssignMultiplePickTote()
Called before assigning multiple license plates (totes) to a pick.
Syntax
OnBeforeAssignMultiplePickTote(var precWhseActivityLine: Record “Warehouse Activity Line”, var precLPHeader: Record “IWX LP Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
precLPHeader | Record “IWX LP Header” | The license plate being assigned. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterAssignMultiplePickTote()
Called after assigning multiple license plates (totes) to a pick.
Syntax
OnAfterAssignMultiplePickTote(var precWhseActivityLine: Record “Warehouse Activity Line”, var precLPHeader: Record “IWX LP Header”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
precLPHeader | Record “IWX LP Header” | The license plate being assigned. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
OnBeforeGetPickToteAssignment()
Called before generating a list of assigned totes for the pick line.
Syntax
OnBeforeGetPickToteAssignment(var precWhseActivityLine: Record “Warehouse Activity Line”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterGetPickToteAssignment()
Called after generating a list of assigned totes for the pick line.
Syntax
OnAfterGetPickToteAssignment(var precWhseActivityLine: Record “Warehouse Activity Line”, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
OnBeforeProcessWhseActivityPackage()
Called before a package is applied to a warehouse activity line.
Syntax
OnBeforeProcessWhseActivityPackage(var precwhseActivityLine: Record “Warehouse Activity Line”, var pcodBinCode: Code[20], var pcodPackageNumber: Code[20], var pbTakeMode: Boolean, var pbAutoShip: Boolean, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
pcodBinCode | Code[20] | The bin code. |
pcodPackageNumber | Code[20] | The package number. |
pbTakeMode | Boolean | True if in take mode; false if in place. |
pbAutoShip | Boolean | True if updating warehouse shipments required. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterProcessWhseActivityPackage()
Called after a package is applied to a warehouse activity line.
Syntax
OnAfterProcessWhseActivityPackage(var precwhseActivityLine: Record “Warehouse Activity Line”, var pcodBinCode: Code[20], var pcodPackageNumber: Code[20], var pbTakeMode: Boolean, var pbAutoShip: Boolean, var ptrecEventParams: Record “IWX Event Param” temporary, var pbsOutput: BigText)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
pcodBinCode | Code[20] | The bin code. |
pcodPackageNumber | Code[20] | The package number. |
pbTakeMode | Boolean | True if in take mode; false if in place. |
pbAutoShip | Boolean | True if updating warehouse shipments required. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbsOutput | BigText | The output text to return to the device. |
OnBeforeAssignDocument()
Called before assigning a user to a warehouse activity header.
Syntax
OnBeforeAssignDocument(var precWhseActivityHeader: Record “Warehouse Activity Header”, var pcodUserName: Code[50], var ptrecEventParams: Record “IWX Event Param” temporary, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line to assign to. |
pcodUserName | Code[50] | The user to assign. |
ptrecEventParams | Record “IWX Event Param” | The variables (key/value pairs) being supplied to the procedure. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnBeforeSetItemTrackingLines()
Called before setting the item tracking information on a warehosue activity line.
Syntax
OnBeforeSetItemTrackingLines(var precWhseActivityLine: Record “Warehouse Activity Line”, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pcodPackageNumber: Code[50], var pdtExpirationDate: Date, var pdQtyChange: Decimal, var pbAllowChange: Boolean, var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
pcodSerialNumber | Code[50] | The serial number. |
pcodLotNumber | Code[50] | The lot number. |
pcodPackageNumber | Code[50] | The package number. |
pdtExpirationDate | Date | The expiration date. |
pdQtyChange | Decimal | The quantity to change. |
pbAllowChange | Boolean | True if existing tracking information can be changed; false if not. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnAfterSetItemTrackingLines()
Called after setting the item tracking information on a warehosue activity line.
Syntax
OnAfterSetItemTrackingLines(var precWhseActivityLine: Record “Warehouse Activity Line”, var pcodSerialNumber: Code[50], var pcodLotNumber: Code[50], var pcodPackageNumber: Code[50], var pdtExpirationDate: Date, var pdQtyChange: Decimal, var pbAllowChange: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityLine | Record “Warehouse Activity Line” | Record variable with all fields from warehouse activity line table. |
pcodSerialNumber | Code[50] | The serial number. |
pcodLotNumber | Code[50] | The lot number. |
pcodPackageNumber | Code[50] | The package number. |
pdtExpirationDate | Date | The expiration date. |
pdQtyChange | Decimal | The quantity to change. |
pbAllowChange | Boolean | True if existing tracking information can be changed; false if not. |
OnBeforeHandleBreakBulkLines()
Called prior to handling any breakbulk lines for the warehouse activity.
Syntax
OnBeforeHandleBreakBulkLines(var piActivityType: Integer, var pcodActivityNumber: Code[20], var pbHandled: Boolean)
Parameters
Parameter | Type | Description |
piActivityType | Integer | The activity type. |
pcodActivityNumber | Code[20] | The activity number. |
pbHandled | Boolean | Set to true if the procedure has been handled. False if the base code should continue to execute. |
OnBeforeAddDocToLookupList()
OnBeforeAddDocToLookupList event executes inside addDocumentToList procedure in WHI Whse. Activity Management Codeunit, before the default insert process of the document list begins. The event happens after the field assignments for ptrecDocList. Developers can custom 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 WHI 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. |
OnBeforeAddWhseActivityToLookupList()
Called prior to determining if the document should be added to the lookup list.
Syntax
OnBeforeAddWhseActivityToLookupList(var precWhseActivityHeader: Record “Warehouse Activity Header”, var precWhseActivityLine: Record “Warehouse Activity Line”, var pbIncludeResult: Boolean)
Parameters
Parameter | Type | Description |
precWhseActivityHeader | Record “Warehouse Activity Header” | The warehouse activity header. |
precWhseActivityLine | Record “Warehouse Activity Line” | The warehouse activity line. |
pbIncludeResult | Boolean | Set to true if the document should be added; false if not. |