-
Notifications
You must be signed in to change notification settings - Fork 371
Bug 634267: [Subcontracting] Transfer Order Reopen not persisting from factbox drill-down (Bug 634267) #8170
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,7 @@ using Microsoft.Purchases.Document; | |||||||||||||||||
| using Microsoft.Purchases.History; | ||||||||||||||||||
| using Microsoft.Utilities; | ||||||||||||||||||
| using System.Reflection; | ||||||||||||||||||
| using System.Text; | ||||||||||||||||||
|
|
||||||||||||||||||
| codeunit 99001560 "Subc. Purch. Factbox Mgmt." | ||||||||||||||||||
| { | ||||||||||||||||||
|
|
@@ -229,9 +230,11 @@ codeunit 99001560 "Subc. Purch. Factbox Mgmt." | |||||||||||||||||
| ProductionOrder: Record "Production Order"; | ||||||||||||||||||
| PurchaseLine: Record "Purchase Line"; | ||||||||||||||||||
| TransferHeader: Record "Transfer Header"; | ||||||||||||||||||
| TransferHeaderToOpen: Record "Transfer Header"; | ||||||||||||||||||
| TransferLine: Record "Transfer Line"; | ||||||||||||||||||
| DataTypeManagement: Codeunit "Data Type Management"; | ||||||||||||||||||
| PageManagement: Codeunit "Page Management"; | ||||||||||||||||||
| SelectionFilterMgt: Codeunit SelectionFilterManagement; | ||||||||||||||||||
| RecRef: RecordRef; | ||||||||||||||||||
| NoOfTransferHeaders: Integer; | ||||||||||||||||||
| begin | ||||||||||||||||||
|
|
@@ -305,10 +308,15 @@ codeunit 99001560 "Subc. Purch. Factbox Mgmt." | |||||||||||||||||
| NoOfTransferHeaders = 0: | ||||||||||||||||||
| Message(NoTransferExistsMsg); | ||||||||||||||||||
| NoOfTransferHeaders = 1: | ||||||||||||||||||
| if TransferHeader.FindFirst() then | ||||||||||||||||||
| PageManagement.PageRun(TransferHeader); | ||||||||||||||||||
| if TransferHeader.FindFirst() then begin | ||||||||||||||||||
| TransferHeaderToOpen.Get(TransferHeader."No."); | ||||||||||||||||||
| PageManagement.PageRun(TransferHeaderToOpen); | ||||||||||||||||||
| end; | ||||||||||||||||||
| NoOfTransferHeaders > 1: | ||||||||||||||||||
| PageManagement.PageRunList(TransferHeader); | ||||||||||||||||||
| begin | ||||||||||||||||||
| TransferHeaderToOpen.SetFilter("No.", SelectionFilterMgt.GetSelectionFilterForTransferHeader(TransferHeader)); | ||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Filter string may grow unbounded for large sets
Recommendation:
Suggested change
👍 useful · ❤️ especially valuable · 👎 wrong - reply with why |
||||||||||||||||||
| PageManagement.PageRunList(TransferHeaderToOpen); | ||||||||||||||||||
| end; | ||||||||||||||||||
| end; | ||||||||||||||||||
| end; | ||||||||||||||||||
| end; | ||||||||||||||||||
|
|
||||||||||||||||||
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.
Unused namespace import added
The
using System.Text;statement was added in this PR but no type from theSystem.Textnamespace (such asTextBuilder) is referenced anywhere in the file. The newSelectionFilterManagementcodeunit does not belong toSystem.Text, so this import is dead code that can trigger AL compiler warnings about unusedusingdirectives.Recommendation:
using System.Text;line. IfSelectionFilterManagementrequires an explicit namespace import to resolve without ambiguity, add its correct namespace instead (e.g.,using Microsoft.Foundation.Navigate;if needed).👍 useful · ❤️ especially valuable · 👎 wrong - reply with why