Documentation / @einvoice-ts/validator / esFaceRuleset
Variable: esFaceRuleset ​
constesFaceRuleset:Ruleset
Defined in: packages/validator/src/rulesets/es-face.ts:32
The CIUS-ES-FACE 1.0.0 rules (ES-FACE-R*) on top of EN 16931: invoice type 380 or 384, PDF and HTML attachments only, at most one preceding invoice, the DIR3 units of the accounting (01), managing (02) and executing (03) offices in the buyer reference (BT-10) as ID|CODE|, and the field lengths of FacturaE. Requires en16931Ruleset; amounts keep EN 16931's two decimals.
validate() resolves a document whose cbc:CustomizationID is CIUS_ES_FACE_CUSTOMIZATION_ID to [en16931Ruleset, esFaceRuleset].
Example ​
ts
import { en16931Ruleset, esFaceRuleset, validate } from '@einvoice-ts/validator';
validate(invoice, { ruleset: [en16931Ruleset, esFaceRuleset] }).ruleset.ids; // ['en16931', 'es-face']