Skip to content

Codeunit WSB_HASHazardousSubstancesMgt

Codeunit to manage Hazardous Substances

Properties

Name Value
Access Public

Methods

wgFncClearHazardPointsPerTransportCategoryBuffer

Clears/resets a "Hazard Points per Transport Category" buffer.

Parameters

Type Name Description
Record "WSB_HazardSubsLineBufferHAS" vRecTempHazardSubsLineBufferHAS The temporary table buffer to clear.
Decimal vTotalNetWeight The total net weight variable to clear.

wgFncUpdateHazardPointsPerTransportCategoryBuffer

Calculates the hazard points and net weight for an (item) document line and updates a "Hazard Points per Transport Category" buffer (and Total Net Weight) accordingly.

Parameters

Type Name Description
Variant pRecRelatedVariant The (item) document line record to get the quantity (base) from.
Record "Item" pRecItem The Item record of the document line.
Record "WSB_HazardSubsLineBufferHAS" vRecTempHazardSubsLineBufferHAS The temporary table buffer to fill.
Decimal vTotalNetWeight The total net weight to update.
Boolean pShowHazardPoints Indicates whether to calculate and add hazard points from the line.

wlEvpOnBeforeCalculateHazardPointsPerTransportCategory

Event to modify the calculation of Hazard Points per Transport Category.

Parameters

Type Name Description
Variant pRecRelatedVariant Record of the related document line (containing the Quantity (Base) to add).
Record "Item" pRecItem The item record of the document line.
Record "WSB_HazardSubsLineBufferHAS" vRecTempHazardSubsLineBufferHAS The temporary table buffer to fill.
Decimal vTotalNetWeight The total net weight of all hazardous items in the document line.
Boolean pShowHazardPoints Indicates if hazard points should be calculated.
Boolean vIsHandled Set to true to skip the default code.