(Bug 634881): [Subcontracting] Item Charges: Remove toggle, remove separate action, use standard Get Receipt Lines#8359
Merged
alexei-dobriansky merged 1 commit intoMay 28, 2026
Conversation
Contributor
Feature flag removed, behavior now unconditionalThe Recommendation:
Line mapping was unavailable, so this was posted as an issue comment. 👍 useful · ❤️ especially valuable · 👎 wrong - reply with why |
AleksandricMarko
approved these changes
May 28, 2026
ChethanT
approved these changes
May 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes AB#634881
Summary
The Subcontracting app required an opt-in toggle (
Item Charge to Subcontracting Purch. Receipt Lines) and exposed a redundantGet Receipt Lines for Subcontractingaction on the Item Charge Assignment (Purch.) page. The toggle blocked the standardGet Receipt Linesfrom succeeding on subcontracting receipt lines (it errored withWork Center No. must be blank); the duplicate action existed solely to work around that. Community feedback (Viva Engage thread on the bug) was unanimous that both add friction without benefit.This PR removes the toggle, deletes the duplicate action, makes the underlying event-subscriber bypass unconditional, and surfaces the production-order reference fields on the standard
Purch. Receipt Linespage so users can distinguish subcontracting lines.Changes
Subcontracting app (
App/BCApps/src/Apps/W1/Subcontracting/App)src/Setup/Tables/SubcManufacturingSetup.TableExt.al— removed field99001510 RefItemChargeToRcptSubLinesand theItemChargeToRcptSubReferenceEnabled()helper.src/Setup/Pages/SubcManufacturingSetup.PageExt.al— removed the toggle field from the Subcontracting setup page.src/Process/Pageextensions/MasterData/SubcItemChargeAssPurch.PageExt.al— deleted. It only existed to host the redundantGet Receipt Lines for Subcontractingaction; the standardGet Receipt Linesnow handles subcontracting receipt lines in a single flow.src/Process/Codeunits/Extensions/Purchase/SubcPurchPostExt.Codeunit.al— removed the toggle guards inFillItemJnlLineForSubcontractingItemChargeandSetQuantityBaseOnSubcontractingServiceLine; dropped the now-unusedManufacturingSetupglobal and namespace import.src/Process/Codeunits/Extensions/Purchase/SubcItemChargeAssPurchExt.Codeunit.al— removed the toggle guard inOnBeforeCreateRcptChargeAssgntso the subcontracting-aware insertion (which bypasses the "Work Center No. must be blank" check) is now unconditional whenever the app is installed.BaseApp Manufacturing (
App/Layers/W1/BaseApp/Manufacturing)Purchases/History/MfgPurchReceiptLines.PageExt.al— addedRouting No.,Operation No.,Work Center No.after the existingProd. Order No.field. All three defaultVisible = false;Prod. Order No.(already there) remains visible as the primary indicator that the line came from a subcontracting receipt. Tooltips follow the establishedSpecifies the number of the related production Xphrasing used by the siblingProd. Order No.field and by the existingSubcTransferLine.TableExt.al/SubcPstdDirectTransfSub.PageExt.al("non-subcontracting-specific" wording).Behavior change
The standard
Get Receipt Lineslookup on Item Charge Assignment (Purch.) does no pre-filter (the deleted action used to restrict the picker to lines withProd. Order No. <> ''). Users now see all posted receipt lines and identify subcontracting rows via the newProd. Order No.column. The "Work Center No. must be blank" error no longer fires for subcontracting lines.