ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] codeunit 22 "Item Jnl.-Post Line"

Open ChristianBouska opened this issue 5 years ago • 2 comments

Hello, I think there should be a statement like the following in codeunit 22, otherwise the IsHandled param makes no sense.

procedure PostItem()
var
    IsHandled: Boolean;
begin
    OnBeforePostItem(ItemJnlLine, IsHandled, CalledFromAdjustment);
    // -New
    if IsHandled then
        exit;
    // +New

    with ItemJnlLine do begin
        SKUExists := SKU.Get("Location Code", "Item No.", "Variant Code");
        IsHandled := false;
        OnPostItemOnAfterGetSKU(ItemJnlLine, SKUExists, IsHandled);

ChristianBouska avatar Jul 15 '21 12:07 ChristianBouska

As i mentioned here #13167

Duffy77 avatar Jul 16 '21 14:07 Duffy77

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.

JesperSchulz avatar Jul 20 '21 11:07 JesperSchulz