Versions Compared

Key

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


Info

OnBeforePostSalesReturnOrder is for non-warehouse locations only. Warehouse locations will create warehouse receipts in standard BC and is handled via the OnPostReceiveOrder_OnBeforePostWarehouseReceipt event.

...

Excerpt

Code to be executed prior to posting via standard posting routines.

Template

...

...

Description

The event is mostly used to validate collected "header" level steps (added from OnGetReceiveOrderLines_OnAddStepsToAnyHeader) and to write collected header level steps values to fields in the database that subsequently can be accessed from standard posting function events.

...

See also: 
How-to: Subscribe to standard events in BC base app


Template

    [EventSubscriber(ObjectType::CodeunitCodeunit::"MOB WMS Receive", 'OnPostReceiveOrder_OnBeforePostSalesReturnOrder''', true, true)]
    procedure OnPostReceiveOrder_OnBeforePostSalesReturnOrder(var _OrderValues: Record "MOB Common Element"; var _SalesReturnHeader: Record "Sales Header")
    begin
    end;



Filter by label (Content by label)
showLabelsfalse
showSpacefalse
sorttitle
titleExamples
excerptTypesimple
cqllabel = "bc" and label = "order" and label = "example" and label = "onbeforepost"

...