Use this event to
Exclude specific Consumption lines from being displayed at mobile device.
Description
You may use the event to exclude specific Production Journal, Type::Consumption lines from being displayed at the mobile device.
See also: OnGetProdConsumptionLines_OnSetFilterProdOrderComponent
Template
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Production Consumption", 'OnGetProdConsumptionLines_OnIncludeProdOrderComponent', '', true, true)]
local procedure OnGetProdConsumptionLines_OnIncludeProdOrderComponent(_ProdOrderComponent: Record "Prod. Order Component"; var _IncludeInOrderLines: Boolean)
begin
end;
Example
// [Example] Hide fully consumed items (standard will allow further consumption even when item is fully consumed accordingly to the BOM)
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Production Consumption", 'OnGetProdConsumptionLines_OnIncludeProdOrderComponent', '', true, true)]
local procedure MyOnGetProdConsumptionLines_OnIncludeProdOrderComponent(_ProdOrderComponent: Record "Prod. Order Component"; var _IncludeInOrderLines: Boolean)
var
RemainingQty: Decimal;
RemainingQtyBase: Decimal;
begin
_ProdOrderComponent.GetRemainingQty(RemainingQty, RemainingQtyBase);
if RemainingQty = 0 then
_IncludeInOrderLines := false;
end;
More examples
There are no items with the selected labels at this time.
Version History
Version | Changes |
---|---|
MOB5.22 | Introduced |