ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Table 5404 (Item Unit of Measure) - OnAfterCalcWeight
Hi AL-Team, we would like to calculate additional values in the function "CalcWeight". So can you please add the following Publisher?
[External] CalcWeight()
IF Item."No." <> "Item No." THEN
Item.GET("Item No.");
Weight := "Qty. per Unit of Measure" * Item."Net Weight";
// >> NEW
OnAfterCalcWeight(Rec,Item);
// << NEW
Publisher definition:
IncludeSender: false
GlobaVarAccess: false
LOCAL [IntegrationEvent] OnAfterCalcWeight(VAR ItemUnitofMeasure : Record "Item Unit of Measure";VAR Item : Record Item)