EDI
Code List and Common Code — the standard code-set mappings that electronic document exchange depends on.
Electronic document interchange mappings.
What it does
EDI is the core scaffolding for electronic document interchange: a Code List is a published code set (a UN/CEFACT or Peppol list, identified by a canonical URI and version) and a Common Code is one entry in it. Because Common Code carries a polymorphic applies_to Dynamic Link table, a single code can be attached to any ERPNext master — mapping your UOMs, tax categories or item groups onto the codes a trading partner expects.
Key features
- Code List — a versioned, URI-identified external code set, with a default Common Code.
- Common Code — one code within a list, with a title and description.
- Polymorphic mapping —
applies_tolinks a code to any ERPNext document, so mappings need no schema change. - Integration surface — e-invoicing and Peppol apps read these lists rather than hard-coding partner identifiers.
Entity relationships
Each diagram below is one connected cluster of entities. Edges are labelled with the fieldname that carries them — see relationship notation for how to read the crow’s feet.
Direct pairs
Entity pairs whose only intra-module relationship is to each other.
Document composition
Parent documents and the child tables they own.
| Parent | Table field | Child table | Req |
|---|---|---|---|
| Common Code | applies_to |
Dynamic Link (fw) |
Entity reference
Related modules
Accounts
The financial core — Chart of Accounts, GL Entry, invoices, payments, taxes, budgets and the receivable/payable ledgers.
Selling
Customer, Quotation and Sales Order — the order-to-cash chain up to the point a Delivery Note or Sales Invoice is raised.