ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 7304 - Whse. Jnl.-Register Batch - OnCheckWhseJnlLine

Open SchoKa opened this issue 7 years ago • 2 comments

Hello AL-Team, we need an additional parameter in the following Publisher in function "Code":

… ItemTrackingMgt.CheckWhseItemTrkgSetup("Item No.",WhseSNRequired,WhseLNRequired,FALSE); IF WhseSNRequired OR WhseLNRequired THEN BEGIN IF WhseSNRequired THEN TESTFIELD("Qty. per Unit of Measure",1); IF WhseJnlTemplate.Type <> WhseJnlTemplate.Type::"Physical Inventory" THEN CreateTrackingSpecification(WhseJnlLine,TempHandlingSpecification) ELSE BEGIN // >> Update // OnCheckWhseJnlLine(WhseJnlLine); OnCheckWhseJnlLine(WhseJnlLine,WhseItemTrkgLine); // << Update

    IF WhseSNRequired THEN
      TESTFIELD("Serial No.");
    IF WhseLNRequired THEN
      TESTFIELD("Lot No.");
  END;
END;
ItemTrackingMgt.CollectItemTrkgInfWhseJnlLine(WhseJnlLine);
OnAfterCollectTrackingInformation(WhseJnlLine);

...

Publisher definition currently used by us IncludeSender: false GlobaVarAccess: false LOCAL [IntegrationEvent] OnCheckWhseJnlLine(VAR WhseJnlLine : Record "Warehouse Journal Line";VAR WhseItemTrackingLine : Record "Whse. Item Tracking Line")

SchoKa avatar Mar 11 '19 15:03 SchoKa

WhseItemTrkgLine is not available in this context

AlexanderYakunin avatar Mar 19 '19 12:03 AlexanderYakunin

Please close this request. Thank you!

SchoKa avatar Mar 19 '19 14:03 SchoKa