Versions Compared

Key

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

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

...

Use this event to

Excerpt

Add filter conditions for Item Journal Batch Phys. Inventory Recording that cannot be solved by OnSetFilter-event.

 

Description

This event is triggered after filters have been applied to the Item Journal Batch. The Phys. Inventory Recording. The event should be used only when it is not possible to use OnSetFilter-event to solve if the Header should be included in the OrderList response.

The Item Journal Batch Phys. Inventory Recording can be excluded from the OrderList response by setting the parameter _IncludeInOrderList to false.


Template

        [EventSubscriber(ObjectType::Codeunit,  Codeunit::"MOB WMS CountMOB WMS Phys Invt Recording",  'OnGetCountOrdersOnGetPhysInvtRecordings_OnIncludeItemJournalBatchOnIncludePhysInvtRecordHeader',  '',  truetrue,  truetrue)]
        local procedure OnGetCountOrders OnGetPhysInvtRecordings_OnIncludeItemJournalBatchOnIncludePhysInvtRecordHeader(_ItemJournalBatchPhysInvtRecordHeader:  Record "Item Journal Batch "Phys. Invt. Record Header";  var  _IncludeInOrderList:  Boolean)
        begin
        end;

Example: Skip Item Journal Batch if Reason Code is blank

        //   [Example]:  Skip Item Journal Batch if Reason Code is blank
    Skip Phys Inventory Recording if Location Code = 'MISSING GOODS'
    [EventSubscriber(ObjectType::Codeunit,  Codeunit::"MOB WMS CountMOB WMS Phys Invt Recording",  'OnGetCountOrdersOnGetPhysInvtRecordings_OnIncludeItemJournalBatchOnIncludePhysInvtRecordHeader',  '',  truetrue,  truetrue)]
        local procedure MyOnGetCountOrders MyOnGetPhysInvtRecordings_OnIncludeItemJournalBatchOnIncludePhysInvtRecordHeader(_ItemJournalBatchPhysInvtRecordHeader:  Record "Item Journal Batch "Phys. Invt. Record Header";  var  _IncludeInOrderList:  Boolean)
        begin
                if  _ItemJournalBatchPhysInvtRecordHeader."Reason CodeLocation Code"   =  'MISSING GOODS' then
                        _IncludeInOrderList  :=  false;
        end;


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


Version History

VersionChanges
MOB5.1419Introduced