ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 7312 "Create Pick" OnCalcPickQtyAssignedBeforeTempWhseActivLineCalcsums

Open leegeurts opened this issue 5 years ago • 2 comments

Hello,

Is it possible to add the following Event:

        end;
        SetRange("Variant Code", VariantCode);
        if UOMCode <> '' then
            SetRange("Unit of Measure Code", UOMCode);
        SetRange("Activity Type", "Activity Type");
        SetRange("Breakbulk No.", 0);
        if WhseItemTrkgExists then begin // DINNL
            SetTrackingFilterFromWhseItemTrackingLineIfNotBlank(TempWhseItemTrackingLine);
            // DINNL <<
            OnCalcPickQtyAssignedBeforeTempWhseActivLineCalcsums(TempWhseActivLine, TempWhseItemTrackingLine);
            // DINNL >>
        end; // DINNL
        CalcSums("Qty. Outstanding (Base)");
        PickQtyAssigned := "Qty. Outstanding (Base)";
    end;
    TempWhseActivLine.Copy(WhseActivLine2);
    exit(PickQtyAssigned);
end;

local procedure CalcQtyAssignedToPick(ItemNo: Code[20]; LocationCode: Code[10]; VariantCode: Code[10]; BinCode: Code[20]; WhseItemTrackingSetup: Record "Item Tracking Setup"): Decimal
var


[IntegrationEvent(false, false)]
local procedure DINOnCalcPickQtyAssignedBeforeTempWhseActivLineCalcsums(var TempWhseActivLine: Record "Warehouse Activity Line" temporary; TempWhseItemTrackingLine: Record "Whse. Item Tracking Line" temporary)
begin
end;

leegeurts avatar Jul 29 '21 14:07 leegeurts

Hi Lee,

Seems you can use existent event OnAfterSetTrackingFilterFromWhseItemTrackingLineIfNotBlank of the table 5767 "Warehouse Activity Line" with exactly the same signature.

Is it ok?

Oleg-Romashkov avatar Aug 02 '21 08:08 Oleg-Romashkov

Hey Oleg,

I believe you are right here as well :) Gonna try it there first

Thank you

leegeurts avatar Aug 02 '21 15:08 leegeurts