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 11 Current »

Requirement

Android App version 1.5.9

Description

You want to automatically trigger posting for each complete registration. 

Use case

The user wants to trigger posting after each registration of a line in Receive Order Lines.

Additionally, they want to register less quantity than expected and surpress all warning and posting messages for each registration. 

Behaviour on the device

In this case, when the user has chosen to register less quantity than expected in Receive Order Lines, no warnings will appear. When the user is done registering a line, the line will be posted automatically, without any confirmation message. 

How to enable it

Step 1: Set postingTrigger to "PostAfterEachRegistration"

This requires a change in the application.cfg


Changes in application.cfg
  <page id="ReceiveLines" type="OrderLines" icon="mainmenureceive">
      <title defaultValue="@{PageReceiveOrderLinesTitle}"/>
      <orderLinesConfiguration postingTrigger="PostAfterEachRegistration" suggestQuantity="true" verifySingleScanRegistrations="false" actionOnEmptyList="ClosePage">
        <service id="Receive"/>
        <list listId="OrderLinesWithImages"/>
       <..>
    </page>


Step 2: Set UnderDeliveryValidation to "none", using OnGetReceiveOrderLines_OnAfterSetFrom... 

To avoid getting a warning when the user registers less quantity than expected. More information about Under/OverDeliveryValidation


 [EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Receive", 'OnGetReceiveOrderLines_OnAfterSetFromWarehouseReceiptLine', '', true, true)]
    local procedure MyOnGetReceiveOrderLines_OnAfterSetFromWarehouseReceiptLine(_WhseReceiptLine: Record "Warehouse Receipt Line"; var _BaseOrderLineElement: Record "MOB Ns BaseDataModel Element")
    begin
        _BaseOrderLineElement.Set_UnderDeliveryValidation('None');
    end;


Step 3: To supress the Posting confirmation message, use OnPostReceiveOrder_OnAfterPost...

Clear the _ResultMessage


[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS receive", 'OnPostReceiveOrder_OnAfterPostAnyOrder', '', true, true)]
    local procedure OnPostReceiveOrder_OnAfterPostAnyOrder(var _OrderValues: Record "MOB Common Element"; _RecRef: RecordRef; var _ResultMessage: Text)
    begin
        _ResultMessage := '';
    end;


 


 


See also 


  • No labels