Skip to content

Documentation / @einvoice-ts/validator / dkRuleset

Variable: dkRuleset ​

const dkRuleset: Ruleset

Defined in: packages/validator/src/rulesets/dk.ts:28

The 14 active DK-R-* rules, gated on a Danish supplier address ($DKSupplierCountry = 'DK' in the Schematron), as the official Peppol validator applies them. Requires peppolRuleset.

Without it, validate() never runs a Danish rule and can accept an invoice from a Danish supplier that official Peppol validation rejects.

Example ​

ts
import { dkRuleset, en16931Ruleset, peppolRuleset, validate } from '@einvoice-ts/validator';

validate(invoice, { ruleset: [en16931Ruleset, peppolRuleset, dkRuleset] });

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.