ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] report 790 "Calculate Inventory" OnCalcPhysInvQtyAndInsertItemJnlLine

Open leegeurts opened this issue 5 years ago • 1 comments

Dear ALAppExtensions Team,

Is it possible to add the following publisher to report 790 "Calculate Inventory"

local procedure CalcPhysInvQtyAndInsertItemJnlLine()
begin
    with QuantityOnHandBuffer do begin
	.....
	.....

                    PosQty := 0;
                    NegQty := 0;
                end;

                // DINNL <<
                DINOnCalcPhysInvQtyAndInsertItemJnlLine(QuantityOnHandBuffer);
                // DINNL >>
                if (PosQty = 0) and (NegQty = 0) and not AdjustPosQty then
                    InsertItemJnlLine(
                      "Item No.", "Variant Code", "Dimension Entry No.",
                      "Bin Code", Quantity, Quantity);
            until Next() = 0;
            DeleteAll();
        end;
    end;
end;


[IntegrationEvent(false, false)]
local procedure DINOnCalcPhysInvQtyAndInsertItemJnlLine(QuantityOnHandBuffer: Record "Inventory Buffer" temporary)
begin
end;

leegeurts avatar May 28 '21 13:05 leegeurts

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 Jun 02 '21 14:06 JesperSchulz