-
Notifications
You must be signed in to change notification settings - Fork 371
[Subcontracting] Remove Subcontracting Purchase Provisioning Wizard #8167
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
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -21,14 +21,14 @@ using Microsoft.Purchases.Document; | |||||||||||||||
| codeunit 99001508 "Subc. Price Management" | ||||||||||||||||
| { | ||||||||||||||||
| var | ||||||||||||||||
| SubcManagementSetup: Record "Subc. Management Setup"; | ||||||||||||||||
| ManufacturingSetup: Record "Manufacturing Setup"; | ||||||||||||||||
|
|
||||||||||||||||
| procedure ApplySubcontractorPricingToProdOrderRouting(var ProdOrderLine: Record "Prod. Order Line"; var RoutingLine: Record "Routing Line"; var ProdOrderRoutingLine: Record "Prod. Order Routing Line") | ||||||||||||||||
| var | ||||||||||||||||
| SubcontractorPrice: Record "Subcontractor Price"; | ||||||||||||||||
| WorkCenter: Record "Work Center"; | ||||||||||||||||
| begin | ||||||||||||||||
| if not SubcManagementSetup.Get() then | ||||||||||||||||
| if not ManufacturingSetup.Get() then | ||||||||||||||||
| exit; | ||||||||||||||||
|
|
||||||||||||||||
| if ProdOrderRoutingLine.Type <> "Capacity Type Routing"::"Work Center" then | ||||||||||||||||
|
|
@@ -67,7 +67,7 @@ codeunit 99001508 "Subc. Price Management" | |||||||||||||||
| SubcontractorPrice: Record "Subcontractor Price"; | ||||||||||||||||
| WorkCenter: Record "Work Center"; | ||||||||||||||||
| begin | ||||||||||||||||
| if not SubcManagementSetup.Get() then | ||||||||||||||||
| if not ManufacturingSetup.Get() then | ||||||||||||||||
| exit; | ||||||||||||||||
|
|
||||||||||||||||
| if RoutingLine.Type <> "Capacity Type Routing"::"Work Center" then | ||||||||||||||||
|
|
@@ -108,7 +108,6 @@ codeunit 99001508 "Subc. Price Management" | |||||||||||||||
| procedure CalcStandardCostOnAfterCalcRtngLineCost(RoutingLine: Record "Routing Line"; MfgItemQtyBase: Decimal; var SLSub: Decimal) | ||||||||||||||||
| var | ||||||||||||||||
| Item: Record Item; | ||||||||||||||||
| ManufacturingSetup: Record "Manufacturing Setup"; | ||||||||||||||||
| WorkCenter: Record "Work Center"; | ||||||||||||||||
| MfgCostCalculationMgt: Codeunit "Mfg. Cost Calculation Mgt."; | ||||||||||||||||
| SubcSessionState: Codeunit "Subc. Session State"; | ||||||||||||||||
|
|
@@ -122,7 +121,7 @@ codeunit 99001508 "Subc. Price Management" | |||||||||||||||
| UnitCost: Decimal; | ||||||||||||||||
| UnitCostCalculationType: Enum "Unit Cost Calculation Type"; | ||||||||||||||||
| begin | ||||||||||||||||
| if not SubcManagementSetup.Get() then | ||||||||||||||||
| if not ManufacturingSetup.Get() then | ||||||||||||||||
|
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. Double Get() on same record in CalcStandardCostIn Recommendation:
Suggested change
👍 useful · ❤️ especially valuable · 👎 wrong - reply with why |
||||||||||||||||
| exit; | ||||||||||||||||
|
|
||||||||||||||||
| if RoutingLine.Type <> "Capacity Type Routing"::"Work Center" then | ||||||||||||||||
|
|
||||||||||||||||
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.
Manual Setup entry opens unscoped Manufacturing Setup
The "Subcontracting App" manual setup entry now navigates users to the generic
Manufacturing Setuppage instead of the former dedicatedSubc. Management Setuppage. Users searching for subcontracting configuration will land on a page that exposes all manufacturing settings, making it easy to accidentally modify unrelated fields.Recommendation:
👍 useful · ❤️ especially valuable · 👎 wrong - reply with why