Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Use this event to

Add filter conditions for Consumption lines from Production Journal.


Description

This event is triggered after standard Production Journal is calculated. You may use the event to exclude specific Type::Consumption lines from being displayed at the 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.


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;



More examples

There are no items with the selected labels at this time.

  

Version History

VersionChanges
MOB5.22Introduced
  • No labels