SDI-00400
The rule sets below word this rule differently; each wording is shown with its rule set.
Why it fails
- A line without VAT (exempt, non-taxable, out of scope, reverse charge) has
AliquotaIVA0.00 but noNaturasaying why.
How to fix it
Add Natura after AliquotaIVA on that line with the detailed code that applies (N1, N2.1, N2.2, N3.1 to N3.6, N4, N5, N6.1 to N6.9, N7), and the same code in the matching DatiRiepilogo.
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.
2.2.1.14 <Natura> non presente a fronte di 2.2.1.12 <AliquotaIVA> pari a zero
/p:FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DettaglioLinee
$rate != 0 or Natura
Checked with FatturaPA 1.2.3
2.2.4 <Natura> non presente a fronte di 2.2.3.2 <Aliquota> pari a zero
/s:FatturaElettronicaSemplificata/FatturaElettronicaBody/DatiBeniServizi
not($rate) or it:dec($rate) != 0 or Natura
Checked with FatturaPA simplified 1.0.2