-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No. Series: Ability to extend filters on finding No. Series Lines when getting new numbers #2361
base: main
Are you sure you want to change the base?
Conversation
…eplaces the backwards compatible Event
…eplaces the backwards compatible Event
@microsoft-github-policy-service agree company="Logico Solutions AG" |
src/Business Foundation/App/NoSeries/src/Single/NoSeriesImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Single/NoSeriesImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
…eplaces the backwards compatible Event
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Single/NoSeriesImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just need the other event to call the new GetNoSeriesLineFilters procedure as well.
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Single/NoSeries.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Single/NoSeries.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Single/NoSeriesImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
…he backwards compatible Event
@grobyns and @AndreasMoth There was some feedback and I have now tried to implement it accordingly. Please check the code again, thank you very much for this intensive review. |
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
…he backwards compatible Event
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
…he backwards compatible Event
This comment has been minimized.
This comment has been minimized.
…he backwards compatible Event
done. We've been discussing the need to add a test or two to verify the error is thrown when the filter on series code changes to ensure future code modifications don't remove that logic. |
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Single/NoSeries.Codeunit.al
Outdated
Show resolved
Hide resolved
src/Business Foundation/App/NoSeries/src/Setup/NoSeriesSetupImpl.Codeunit.al
Outdated
Show resolved
Hide resolved
…he backwards compatible Event
|
@@ -15,6 +15,7 @@ codeunit 305 "No. Series - Setup Impl." | |||
NumberFormatErr: Label 'The number format in %1 must be the same as the number format in %2.', Comment = '%1=No. Series Code,%2=No. Series Code'; | |||
UnIncrementableStringErr: Label 'The value in the %1 field must have a number so that we can assign the next number in the series.', Comment = '%1 = New Field Name'; | |||
NumberLengthErr: Label 'The number %1 cannot be extended to more than 20 characters.', Comment = '%1=No.'; | |||
CodeFieldChangedErr: Label 'The filter on %1 was altered by an event subscriber. This is a programming error. Please contact your partner to resolve the issue.\Original %1: %2\Modified Filter: %3'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the error below shows, whenever you add a label with placeholder, you must add a comment specifying what those placeholders are. These are necessary for translation teams to translate the string better. This is required for all strings with placeholders because some string can be very difficult for a translator to understand when they almost fully consist of these placeholders..
procedure SetNoSeriesLineFilters(var NoSeriesLine: Record "No. Series Line"; NoSeriesCode: Code[20]; StartingDate: Date) | ||
var | ||
NoSeries: Codeunit "No. Series"; | ||
NoSeriesLine2: Record "No. Series Line"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See errors below, basically the sorting of variables must be fixed, Record comes before codeunit.
…he backwards compatible Event
Head branch was pushed to by a user without write access
4f1174f
Summary
Add Event for No. Series
Work Item(s)
Fixes #1362
Fixes AB#558102