Skip to content

Documentation / @facturometro/einvoice / UBL_CR_TABLE

Variable: UBL_CR_TABLE ​

const UBL_CR_TABLE: readonly UblCrRule[]

Defined in: packages/parser/src/generated/structural.generated.ts:107

The 783 element paths the EN 16931 UBL subset forbids, one row per document type: an assert written against (cac:InvoiceLine|cac:CreditNoteLine) becomes a row for each. The parser reports the rule of the longest path it matched.

Example ​

ts
UBL_CR_TABLE.find((rule) => rule.segments.join('/') === 'cbc:UUID')?.id; // 'UBL-CR-005'

MIT licensed. Specification artefacts belong to OpenPEPPOL, CEN and OASIS.