OnPostAdhocRegistrationOnBulkMove_OnAfterCreateWhseJnlLine
Use this event to
Populate warehouse journal line when posting bulk move with Location."Directed Put-away and Pick".
See also: OnPostAdhocRegistrationOnBulkMove_OnAfterCreateItemJnlLine
Template
// [Template]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnBulkMove_OnAfterCreateWhseJnlLine', '', true, true)]
local procedure OnPostAdhocRegistrationOnBulkMove_OnAfterCreateWhseJnlLine(var _RequestValues: Record "MOB NS Request Element"; var _WhseJnlLine: Record "Warehouse Journal Line")
begin
end;
Example
// [Example]
[EventSubscriber(ObjectType::Codeunit, Codeunit::"MOB WMS Adhoc Registr.", 'OnPostAdhocRegistrationOnBulkMove_OnAfterCreateWhseJnlLine', '', true, true)]
local procedure MyOnPostAdhocRegistrationOnBulkMove_OnAfterCreateWhseJnlLine(var _RequestValues: Record "MOB NS Request Element"; var _WhseJnlLine: Record "Warehouse Journal Line")
var
RegistrationType: Text;
LocationCode: Text;
FromBinCode: Text;
ToBinCode: Text;
begin
RegistrationType := _RequestValues.GetValue('RegistrationType');
LocationCode := _RequestValues.GetValue('Location');
FromBinCode := _RequestValues.GetValue('FromBin');
ToBinCode := _RequestValues.GetValue('ToBin');
_WhseJnlLine.Validate(Description, CopyStr(StrSubstNo('%1 %2 %3 to %4', RegistrationType, LocationCode, FromBinCode, ToBinCode), 1, MaxStrLen(_WhseJnlLine.Description)));
end;
More examples
There are no items with the selected labels at this time.
Version History
Version | Changes |
---|---|
MOB5.17 | Introduced |