ALAppExtensions icon indicating copy to clipboard operation
ALAppExtensions copied to clipboard

[Event Request] Table 98 General Ledger Setup - OnBeforeIsPostingAllowed

Open WJMSmit opened this issue 4 years ago • 1 comments

Hello,

In order to be able to make use of the event in procedure "FirstAllowedPostingDate", in combination with procedure "IsPostingAllowed" (as used in codeunit "Inventory Adjustment"), we would like a similar event in procedure "IsPostingAllowed".

F.i.: procedure IsPostingAllowed(PostingDate: Date): Boolean // <<Start New Code var IsHandled: Boolean; Result: Boolean; // >>End New Code begin // <<Start New Code IsHandled := false; OnBeforeIsPostingAllowed(Rec, PostingDate, Result, IsHandled); if IsHandled then exit(Result);

    // >>End New Code
    exit(PostingDate >= "Allow Posting From");
end;

// <<Start New Code
[IntegrationEvent(false, false)]
local procedure OnBeforeIsPostingAllowed(GeneralLedgerSetup: Record "General Ledger Setup"; PostingDate: Date; var Result: Boolean; var IsHandled: Boolean)
begin
end;
// >>End New Code

Thanks in advance!

WJMSmit avatar Mar 17 '22 10:03 WJMSmit

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 Apr 09 '22 04:04 JesperSchulz