#11156 Allow controlled changes to item tracking codes
Item tracking codes can now be changed after posting history exists, provided the item is in a safe state with zero inventory and no open ledger entries.
- 144files
- 124AL files
- 35objects
Pull request · merged into main (BC30) on 2026-12-03 by AleksandricMarko · 144 files (+8898 -564), 124 AL · feature · tier official · reviewed (checked by Opus)
What changed
- Item Tracking Code can be changed on items with posting history when inventory is zero and no open item ledger entries exist
- Change stays blocked by risky activity such as open entries, reservations, active tracking, partial receipts or shipments, and related journal or warehouse activity
- Later returns, undo operations, corrections and applications follow the tracking rules in force when the original entries were posted
- Previous and new tracking codes are recorded in an immutable change history
- Requires a dedicated permission and asks for confirmation when advanced validation applies
- Behaviour changes for users or extensions.
AL objects touched
- Table 27 “Item”, Base Application: modified
- Table 39 “Purchase Line”, Base Application: modified
- Codeunit 1313 “Correct Posted Purch. Invoice”, Base Application: modified
- Table 125 “Purch. Cr. Memo Line”, Base Application: modified
- Table 37 “Sales Line”, Base Application: modified
- Codeunit 1303 “Correct Posted Sales Invoice”, Base Application: modified
- Table 115 “Sales Cr.Memo Line”, Base Application: modified
- Codeunit 80 “Sales-Post”, Base Application: modified
- Table 32 “Item Ledger Entry”, Base Application: modified
- Codeunit 6620 “Copy Document Mgt.”, Base Application: modified
- Table 5902 “Service Line”, Base Application: modified
- Codeunit 22 “Item Jnl.-Post Line”, Base Application: modified
- Table 336 “Tracking Specification”, Base Application: modified
- Codeunit 900 “Assembly-Post”, Base Application: modified
- Entitlement “D365 Business Central Infrastructure BaseApp”, Base Application: modified
- Entitlement “Delegated Admin agent - Partner BaseApp”, Base Application: modified
- Entitlement “Delegated BC Admin agent - Partner BaseApp”, Base Application: modified
- Entitlement “Dynamics 365 Admin - Partner BaseApp”, Base Application: modified
- Entitlement “Dynamics 365 Administrator BaseApp”, Base Application: modified
- Entitlement “Dynamics 365 Business Central Essentials BaseApp”, Base Application: modified
- Entitlement “Dynamics 365 Business Central Premium BaseApp”, Base Application: modified
- Entitlement “Internal Administrator BaseApp”, Base Application: modified
- Entitlement “Internal BC Administrator BaseApp”, Base Application: modified
- Codeunit 1764 “Inventory-Data Classification”, Base Application: modified
- Table 6502 “Item Tracking Code”, Base Application: modified
- Page 6510 “Item Tracking Lines”, Base Application: modified
- Codeunit 6516 “Package Management”, Base Application: modified
- Codeunit 5817 “Undo Posting Management”, Base Application: modified
- Codeunit 99000822 “Mfg. Item Jnl.-Post Line”, Base Application: modified
- Codeunit 99000843 “Undo Prod. Posting Mgmt.”, Base Application: modified
- Permission set 2914 “Administrator”, Base Application: modified
- Permission set 209 “D365 Basic - Read”, Base Application: modified
- Codeunit 99000834 “Purch. Line-Reserve”, Base Application: modified
- Codeunit 99000832 “Sales Line-Reserve”, Base Application: modified
- Codeunit 5819 “Undo Service Consumption Line”, Base Application: modified
src/Layers/APAC/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/BE/BaseApp/Sales/Document/SalesLine.Table.al: modified, not in the BC30 snapshotsrc/Layers/BE/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/CH/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Purchases/History/CorrectPostedPurchInvoice.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/ES/BaseApp/Sales/History/CorrectPostedSalesInvoice.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/FI/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/IT/BaseApp/Inventory/Posting/ItemJnlPostLine.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/IT/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/NL/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/NO/BaseApp/Sales/Posting/SalesPost.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/RU/BaseApp/Utilities/CopyDocumentMgt.Codeunit.al: modified, not in the BC30 snapshotsrc/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeLog.Page.al: added, not in the BC30 snapshot yetsrc/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeLog.Table.al: added, not in the BC30 snapshot yetsrc/Layers/W1/BaseApp/Inventory/Tracking/ItemTrackingCodeChangeMgt.Codeunit.al: added, not in the BC30 snapshot yetsrc/Layers/W1/BaseApp/Permissions/ITEMTRACKINGCHANGE.PermissionSet.al: added, not in the BC30 snapshot yet
Context
- Work items: AB#435436
- Labels: Team: SCM
- Systems: sales, purchasing, inventory, administration, platform, service, assembly, manufacturing
- From the description: “Changing between supported item tracking configurations when inventory is zero and no open item ledger entries exist.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Creating and Interacting with an OData V4 Bound Action — possibly related: touches Codeunit 6620 “Copy Document Mgt.”
- Snapshot debugging — possibly related: touches Codeunit 80 “Sales-Post”
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).