BR-RO-040

Codul datei de exigibilitate a taxei pe valoarea adaugata (BT-8) trebuie sa fie unul dintre urmatoarele coduri din lista de coduri UNTDID 2005: 3 (Data emiterii facturii), 35 (Data reala a livrarii), 432 (Suma platita în acea zi). #Value added tax point date code MUST be coded using a restriction of UNTDID 2005 (only 3, 35 and 432).

error: the document is invalid

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
cac:InvoicePeriod/cbc:DescriptionCode
Test
((not(contains(normalize-space(.), ' ')) and contains(' 3 35 432 ', concat(' ', normalize-space(.), ' '))))

Checked with Romania RO e-Factura Invoice (UBL), Romania RO e-Factura Credit Note (UBL)