Use this event to
...
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnIncludeProductionOutput', '', true, true)]
local procedure OnLookupOnProdOutput_OnIncludeProductionOutput(_ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine: Record "Prod. Order Routing Line"; var _IncludeInOrderLines: Boolean)
begin
end;
Example
// [Example] Hide all operations if final operation is fully output (standard will allow further output even when everything is produced accordingly to the Prod. Order Line)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Lookup", 'OnLookupOnProdOutput_OnIncludeProductionOutput', '', true, true)]
local procedure MyOnLookupOnProdOutput_OnIncludeProductionOutput(_ProdOrderLine: Record "Prod. Order Line"; _ProdOrderRtngLine: Record "Prod. Order Routing Line"; var _IncludeInOrderLines: Boolean)
begin
if _ProdOrderLine."Remaining Quantity" = 0 then
_IncludeInOrderLines := false;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...