ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 7347 Internal Movement Line - CheckQtyItemTrackingLines - "OnCheckQtyItemTrackingLinesOnBeforeGetWhseItemTrkgSetup"

Open MH1612 opened this issue 4 years ago • 1 comments

Can we please get the following events?

  local procedure CheckQtyItemTrackingLines(): Boolean
    var
        WhseWorksheetLine: Record "Whse. Worksheet Line";
        TotalWhseItemTrackingLine: Record "Whse. Item Tracking Line";
        ItemTrackingMgt: Codeunit "Item Tracking Management";
        SourceQuantityArray: array[2] of Decimal;
        UndefinedQtyArray: array[2] of Decimal;
    begin
        IsHandledL := true;
        OnCheckQtyItemTrackingLinesOnBeforeGetWhseItemTrkgSetup("Location Code", IsHandledL); <-- NEW EVENT
        if IsHandledL then begin
            exit(true);
        end;
        if ItemTrackingMgt.GetWhseItemTrkgSetup("Item No.") then begin
            WhseWorksheetLine.InitNewLineWithItem(
              "Warehouse Worksheet Document Type"::"Internal Movement", "No.", "Line No.",
              "Location Code", "Item No.", "Variant Code", "Qty. (Base)", "Qty. (Base)", "Qty. per Unit of Measure");
            exit(
              ItemTrackingMgt.UpdateQuantities(
                WhseWorksheetLine, TotalWhseItemTrackingLine, SourceQuantityArray, UndefinedQtyArray, DATABASE::"Internal Movement Line"));
        end;
        exit(true);
    end;
[IntegrationEvent(false, false)]
local procedure OnCheckQtyItemTrackingLinesOnBeforeGetWhseItemTrkgSetup(LocationCode: Code[10]; var IsHandled: Boolean)
    begin
    end;

MH1612 avatar May 05 '22 10:05 MH1612

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar May 12 '22 05:05 JesperSchulz