Use this event to
Excerpt |
---|
Run additional code after a PostAdhocRegistration request has been executed. |
...
Template
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnAfterPostAdhocRegistration', '', true, true)]
local procedure OnAfterPostAdhocRegistration(_MessageId: Guid; _RegistrationType: Text; var _RequestValues: Record "MOB NS Request Element"; var _XmlResponseDoc: XmlDocument; var _RegistrationTypeTracking: Text)
begin
end;
Example
// [Example]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnAfterPostAdhocRegistration', '', true, true)]
local procedure MyOnAfterPostAdhocRegistration(_MessageId: Guid; _RegistrationType: Text; var _RequestValues: Record "MOB NS Request Element"; var _XmlResponseDoc: XmlDocument; var _RegistrationTypeTracking: Text)
var
MobSetup: Record "MOB Setup";
MobWmsToolbox: Codeunit "MOB WMS Toolbox";
begin
if _RegistrationType <> MobWmsToolbox."CONST::UnplannedCount"() then
exit;
MobSetup.Get();
if MobSetup."Skip Whse Unpl Count IJ Post" then begin
// Some code to calculate item journal adjustment using the "Calculate Whse. Adjustment" report
// ...
end;
_RegistrationTypeTracking := _RegistrationTypeTracking + ' / Item Journal adjustment calculated';
end;
end;
Filter by label (Content by label) | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...