SDI-00418Errore 00418 SdI

The rule sets below word this rule differently; each wording is shown with its rule set.

In English The invoice date (2.1.1.3) is before the date of the invoice it refers to: 2.1.6.3 in a credit note, DataFR (2.1.2.2) in a simplified invoice.

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

Message

2.1.1.3 <Data> antecedente a 2.1.6.3 <Data>

Context
/p:FatturaElettronica/FatturaElettronicaBody
Test
$type != 'TD04' or (every $d in DatiGenerali/DatiFattureCollegate/Data satisfies $date ge xs:date($d))

Checked with FatturaPA 1.2.3

Message

2.1.1.3 <Data> antecedente a 2.1.2.2 <DataFR>

Context
/s:FatturaElettronicaSemplificata/FatturaElettronicaBody
Test
not(DatiGenerali/DatiFatturaRettificata) or $date ge xs:date(DatiGenerali/DatiFatturaRettificata/DataFR)

Checked with FatturaPA simplified 1.0.2