Skip to content

Documentation / @einvoice-ts/validator / esFaceLenientRuleset

Variable: esFaceLenientRuleset ​

const esFaceLenientRuleset: Ruleset

Defined in: packages/validator/src/rulesets/es-face.ts:57

Relaxes esFaceRuleset to accept a buyer reference (BT-10) whose last DIR3 unit lacks the closing |, as in FACe's own samples (03|U00000001|02|U00000002|01|U00000003): it disables ES-FACE-R007 and nothing else. Requires esFaceRuleset; never applied by default.

Example ​

ts
import {
  en16931Ruleset,
  esFaceLenientRuleset,
  esFaceRuleset,
  validate,
} from '@einvoice-ts/validator';

validate(invoice, { ruleset: [en16931Ruleset, esFaceRuleset, esFaceLenientRuleset] });

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.