ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] Codeunit 5777 "Whse. Validate Source Line" - ItemLineVerifyChange
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!
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.