Skip to content
ERPNext Data Model
Esc
navigateopen⌘Jpreview
On this page

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 mappingapplies_to links 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

Look it up

Was this page helpful?