Skip to content

Documentation / @einvoice-ts/parser / UBL_RULE_TABLE

Variable: UBL_RULE_TABLE ​

const UBL_RULE_TABLE: Readonly<Record<string, UblRuleInfo>>

Defined in: generated/structural.generated.ts:3343

What each of the 747 rules of the tables above says when it fires: the Schematron message and the severity it is flagged with, so a structural diagnostic is worded by the specification without the parser depending on the validator. UBL-DT-01 is worded too: the parser reports it on the amounts inside an element it dropped.

Example ​

ts
UBL_RULE_TABLE['UBL-SR-08']?.severity; // 'fatal'

MIT licensed. Specification material belongs to OpenPeppol, CEN and OASIS (see NOTICE). Peppol is a trademark of OpenPeppol AISBL; this project is not affiliated with it.