Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use this event to

Excerpt

Exclude specific Consumption lines from being displayed at mobile device.

...

Unlike other OrderLists at the mobile device, due to the implementation (reusing standard functions to calculate Production Journal) no "_OnSetFilter"-event is availble for this list.


See also: OnGetProdConsumptionLines_OnSetFilterProdOrderComponent

Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"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::CodeunitCodeunit::"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;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleMore examples
excerptTypesimple
cqllabel = "bc" and label = "production" and label = "example" and label = "oninclude"

...