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 3 Next »

Use this event to

Change the level of detail used when searching for existing entries when TimeTracking is started/stopped.

Description

You may change the level of detail used when searching for existing Time Tracking Entries when TimeTracking is started and stopped.


Default behaviour is time is recorded (started and stopped) per Mobile UserID and per DeviceID:

  • If the Mobile UserID starts TimeTracking for an operation only that same mobile user can stop that "counter" for the operation.
  • Also, the TimeTracking can only be stopped on the same device that originally started the "counter".
  • This allows multiple users to share the same Mobile UserID as long as they are using separate devices.

This default behavior can be changed using this event. A sample use could be to no longer allow users to share the same Mobile UserID, but in return allow the Mobile UserID to stop "counters" they started on other mobile devices themself.


Template

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



More examples

  

Version History

VersionChanges
MOB5.22Introduced
  • No labels