ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[New Event Request] Procedure isInbound on table 37/39

Open DamianoCastagna opened this issue 3 years ago • 1 comments

Hello, In asking for a new event into function isinbound on table 37 an 39. As the document type enum is extensible, I think that the function isInbound must check also new values

Actually the function is (PurchaseLine)

procedure IsInbound(): Boolean begin case "Document Type" of "Document Type"::Order, "Document Type"::Invoice, "Document Type"::Quote, "Document Type"::"Blanket Order": exit("Quantity (Base)" > 0); "Document Type"::"Return Order", "Document Type"::"Credit Memo": exit("Quantity (Base)" < 0); end;

    exit(false);
end;

I think that something like this shoud work

procedure IsInbound(): Boolean

var isInboundValue : boolean

begin
    case "Document Type" of
        "Document Type"::Order, "Document Type"::Invoice, "Document Type"::Quote, "Document Type"::"Blanket Order":
            exit("Quantity (Base)" > 0);
        "Document Type"::"Return Order", "Document Type"::"Credit Memo":
            exit("Quantity (Base)" < 0);
    end;
   // Check for new document Type and assign the value to a new variable an the exit the new variable value
   isInboundValue := False
   onAfterCheckPurchaseStandardDocumentType(Rec , isInBoundValue);
    exit(IsInboundValue)
end;

DamianoCastagna avatar Apr 17 '23 13:04 DamianoCastagna

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.

Build ID: 10924.

JesperSchulz avatar Jun 01 '23 08:06 JesperSchulz