You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, could you please add an event in function GetNoSeriesLine with the handled-pattern:
[InherentPermissions(PermissionObjectType::TableData, Database::"No. Series Line", 'm')]
procedure GetNoSeriesLine(var NoSeriesLine: Record "No. Series Line"; NoSeriesCode: Code[20]; UsageDate: Date; HideErrorsAndWarnings: Boolean): Boolean
var
NoSeriesRec: Record "No. Series";
NoSeries: Codeunit "No. Series";
NoSeriesErrorsImpl: Codeunit "No. Series - Errors Impl.";
#if not CLEAN24
#pragma warning disable AL0432
NoSeriesManagement: Codeunit NoSeriesManagement;
#pragma warning restore AL0432
#endif
LineFound: Boolean;
begin
if UsageDate = 0D then
UsageDate := WorkDate();
// Find the No. Series Line closest to the usage date
NoSeriesLine.Reset();
NoSeriesLine.SetCurrentKey("Series Code", "Starting Date");
NoSeriesLine.SetRange("Series Code", NoSeriesCode);
NoSeriesLine.SetRange("Starting Date", 0D, UsageDate);
NoSeriesLine.SetRange(Open, true);
if (NoSeriesLine."Line No." <> 0) and (NoSeriesLine."Series Code" = NoSeriesCode) then begin
NoSeriesLine.SetRange("Line No.", NoSeriesLine."Line No.");
#if not CLEAN24
#pragma warning disable AL0432
NoSeriesManagement.RaiseObsoleteOnNoSeriesLineFilterOnBeforeFindLast(NoSeriesLine);
#pragma warning restore AL0432
#endif
LineFound := NoSeriesLine.FindLast();
if not LineFound then
NoSeriesLine.SetRange("Line No.");
end;
#if not CLEAN24
#pragma warning disable AL0432
if not LineFound then begin
NoSeriesManagement.RaiseObsoleteOnNoSeriesLineFilterOnBeforeFindLast(NoSeriesLine);
LineFound := NoSeriesLine.FindLast();
end;
#pragma warning restore AL0432
#else
if not LineFound then
LineFound := NoSeriesLine.FindLast();
#endif
Event definition
[EventSubscriber(ObjectType::Codeunit, codeunit::NoSeriesManagement, 'OnNoSeriesLineFilterOnBeforeFindLast', '', false, false)]
local procedure NoSeriesManagement_OnNoSeriesLineFilterOnBeforeFindLast(var NoSeriesLine: Record "No. Series Line")
Additional context
Compiler Warning AL0432
Internal work item: AB#538705
The text was updated successfully, but these errors were encountered:
This request is very similar to this one here: microsoft/BCApps#1362
For System Application and Business Foundation (and anything else already on BCApps) I'd recommend following the process there: Create an issue, when approved create a PR. Yes it's a little more work on your end but the lead time to a fix should be much shorter.
As this seems like a duplicate of the issue on BCApps i'll close this one.
Describe the request
Hello, could you please add an event in function GetNoSeriesLine with the handled-pattern:
Event definition
Additional context
Compiler Warning AL0432
Internal work item: AB#538705
The text was updated successfully, but these errors were encountered: