SDI-00401Errore 00401 SdI

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

In English Natura is given on a line (2.2.1.14) whose VAT rate (2.2.1.12) is not zero; in a simplified invoice, Natura (2.2.4) with an Aliquota (2.2.3.2) that is not zero. Only a TD16 document may have both.

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.2.1.14 <Natura> presente a fronte di 2.2.1.12 <AliquotaIVA> diversa da zero

Context
/p:FatturaElettronica/FatturaElettronicaBody/DatiBeniServizi/DettaglioLinee
Test
$rate = 0 or not(Natura) or $type = 'TD16'

Checked with FatturaPA 1.2.3

Message

2.2.4 <Natura> presente a fronte di 2.2.3.2 <Aliquota> diversa da zero

Context
/s:FatturaElettronicaSemplificata/FatturaElettronicaBody/DatiBeniServizi
Test
not($rate) or it:dec($rate) = 0 or not(Natura)

Checked with FatturaPA simplified 1.0.2