ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Codeunit 5777 "Whse. Validate Source Line" - ItemLineVerifyChange

Open hhoutaptean opened this issue 6 years ago • 1 comments

Hi,

We would like to have an event added to codeunit 5777 "Whse. Validate Source Line", procedure ItemLineVerifyChange() to be able to skip the current check and be able to consume bulk picked inventory for specific Food Industry scenario's.

Event:

"Entry Type"::Consumption:
                   begin
                       TestField("Order Type", "Order Type"::Production);
                       if Location.Get("Location Code") and Location."Require Pick" and Location."Require Shipment" then
                           if ProdOrderComp.Get(
                                ProdOrderComp.Status::Released,
                                "Order No.", "Order Line No.", "Prod. Order Comp. Line No.") and
                              (ProdOrderComp."Flushing Method" = ProdOrderComp."Flushing Method"::Manual) and
                              (Quantity >= 0)
                           then begin
                               QtyRemainingToBePicked :=
                                 Quantity - CalcNextLevelProdOutput(ProdOrderComp) -
                                 ProdOrderComp."Qty. Picked" + ProdOrderComp."Expected Quantity" - ProdOrderComp."Remaining Quantity";
                               // START EVENT ++
                               OnBeforeCheckQtyRemainingToBePicked(NewItemJnlLine, OldItemJnlLine, IsHandled);
                               If not IsHandled then
                               // END EVENT --
                                   if QtyRemainingToBePicked > 0 then
                                       Error(Text002, "Order No.", QtyRemainingToBePicked);
                               QtyChecked := true;
                           end;

Publisher function:

[IntegrationEvent(false, false)]
    local procedure OnBeforeCheckQtyRemainingToBePicked(NewItemJnlLine: Record "Item Journal Line"; OldItemJnlLine: Record "Item Journal Line"; var IsHandled: Boolean)
    begin
    end; 

Thanks in advance!

hhoutaptean avatar Sep 28 '20 13:09 hhoutaptean

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. We will update this issue with information about availability.

bc-ghost avatar Oct 01 '20 05:10 bc-ghost