ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 5404 (Item Unit of Measure) - OnAfterCalcWeight

Open MattiLE opened this issue 7 years ago • 0 comments

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)

MattiLE avatar Mar 25 '19 13:03 MattiLE