#12846 [main] bug 652274 - [CZ] Add the Country/Region of Origin Code field to a document line
Czech Intrastat reporting now supports a Country/Region of Origin Code field on document lines, initialized from the item card but changeable per transaction, with an option to retrieve values from posted entries instead.
- 79files
- 72AL files
- 72objects
Pull request · merged into main (BC30) on 2026-10-19 by v-janpopr · 79 files (+2163 -315), 72 AL · feature · tier official · reviewed (checked by Opus)
What changed
- New Country/Reg. of Orig. Code CZ field added to all document, journal, archive, and ledger lines
- Field auto-populated from item card but can be manually changed per transaction
- New Intrastat Report Setup option to retrieve origin from Item Card (default) or Posted Entries
- Value preserved through posting, archiving, direct transfers, and ledger creation
- Allows same item from different country sources without requiring separate item cards
- Behaviour changes for users or extensions.
AL objects touched
- Permission set extension 31300 “Intrastat CZ - Objects”, IntrastatCZ (CZ layer): modified
- Codeunit 31302 “IntrastatReportManagementCZ”, IntrastatCZ (CZ layer): modified
- Codeunit 31159 “Item Card Origin CZ”, IntrastatCZ (CZ layer): added
- Codeunit 31163 “Item Entry Origin CZ”, IntrastatCZ (CZ layer): added
- Codeunit 31164 “Job Entry Origin CZ”, IntrastatCZ (CZ layer): added
- Codeunit 31165 “No Posted Origin CZ”, IntrastatCZ (CZ layer): added
- Codeunit 31160 “Posted Entries Origin CZ”, IntrastatCZ (CZ layer): added
- Enum 31302 “Get Country/Reg. of Origin CZ”, IntrastatCZ (CZ layer): added
- Enum 31303 “Intrastat Posted Source CZ”, IntrastatCZ (CZ layer): added
- Interface “Intrastat Origin Mode CZ”, IntrastatCZ (CZ layer): added
- Interface “Intrastat Posted Origin CZ”, IntrastatCZ (CZ layer): added
- Page extension 31334 “Blanket Purch.Ord. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31335 “Blanket Sales Ord. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31342 “Intrastat Report Setup CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31303 “Item Journal CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31304 “Item Ledger Entries CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31305 “Job Journal CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31306 “Job Ledger Entries CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31336 “Posted Direct Trans. Sub. CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31307 “Posted Purch. CM Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31308 “Posted Purch. Inv. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31309 “Posted Purch.Rcpt. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31310 “Posted Ret. Rcpt. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31311 “Posted Ret. Shpt. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31312 “Posted Sales CM Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31313 “Posted Sales Inv. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31314 “Posted Sales Shpt. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31315 “Posted Serv. CM Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31316 “Posted Serv. Inv. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31317 “Posted Transfer Rcpt. Subf CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31318 “Posted Transfer Shpt. Subf CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31321 “Purch. Cr. Memo Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31322 “Purch. Invoice Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31323 “Purch. Return Ord. Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31319 “Purchase Order Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31320 “Purchase Quote Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31324 “Sales Cr. Memo Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31325 “Sales Invoice Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31326 “Sales Order Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31327 “Sales Quote Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31328 “Sales Return Order Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31329 “Service Cr. Memo Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31330 “Service Invoice Subform CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31331 “Service Lines CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31332 “Service Quote Lines CZ”, IntrastatCZ (CZ layer): modified
- Page extension 31333 “Transfer Order Subform CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31323 “Direct Trans. Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31326 “Intrastat Report Setup CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31302 “Item Journal Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31303 “Item Ledger Entry CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31304 “Job Journal Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31305 “Job Ledger Entry CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31306 “Purch. Cr. Memo Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31307 “Purch. Inv. Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31308 “Purch. Rcpt. Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31332 “Purchase Line Archive CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31309 “Purchase Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31310 “Return Receipt Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31311 “Return Shipment Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31312 “Sales Cr. Memo Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31313 “Sales Invoice Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31341 “Sales Line Archive CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31314 “Sales Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31315 “Sales Shipment Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31316 “Service Cr. Memo Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31317 “Service Invoice Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31354 “Service Line Archive CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31318 “Service Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31319 “Service Shipment Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31320 “Transfer Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31321 “Transfer Receipt Line CZ”, IntrastatCZ (CZ layer): modified
- Table extension 31322 “Transfer Shipment Line CZ”, IntrastatCZ (CZ layer): modified
Context
- Work items: AB#652274
- Labels: Ownership: Manual, Team: Finance
- Systems: inventory, development
- From the description: “The country/region of origin used for Czech Intrastat reporting is currently taken from the item card.”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Work with blanket sales orders or purchase orders — possibly related: Country/Region of Origin Code field added to blanket order lines and other document types. (model-linked)
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).