AccountingCustomerParty > Party > EndpointID[@schemeID="0205" and string-length(normalize-space(.))=7 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "")=""]Only when: EndpointID scheme 0205 is a 7 character private SDI code
Description
valid seven-character SDI code from EndpointID scheme 0205. Converted to uppercase
Only when
EndpointID scheme 0205 is a 7 character private SDI code
XPath
cac:AccountingCustomerParty/cac:Party/cbc:EndpointID[@schemeID="0205" and string-length(normalize-space(.))=7 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", "")=""]
AccountingSupplierParty > Party > PostalAddress > CountrySubentity[string-length(normalize-space(.))=2 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "")=""]
Description
supplier province when explicitly present
XPath
cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity[string-length(normalize-space(.))=2 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "")=""]
AccountingCustomerParty > Party > PartyIdentification[ID > @schemeID="IT:CF" or ID > @schemeID="CF"] > IDOnly when: buyer has an explicit Italian fiscal code
Description
explicit buyer fiscal code
Only when
buyer has an explicit Italian fiscal code
XPath
cac:AccountingCustomerParty/cac:Party/cac:PartyIdentification[cbc:ID/@schemeID="IT:CF" or cbc:ID/@schemeID="CF"]/cbc:ID
AccountingCustomerParty > Party > PostalAddress > PostalZone[string-length(normalize-space(.))=5 and translate(normalize-space(.), "0123456789", "")=""]Only when: buyer country is Italy
Description
valid five digit domestic postal code
Required
✓Yes
Only when
buyer country is Italy
XPath
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:PostalZone[string-length(normalize-space(.))=5 and translate(normalize-space(.), "0123456789", "")=""]
AccountingCustomerParty > Party > PostalAddress > CountrySubentity[string-length(normalize-space(.))=2 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "")=""]
Description
buyer province when explicitly present
XPath
cac:AccountingCustomerParty/cac:Party/cac:PostalAddress/cbc:CountrySubentity[string-length(normalize-space(.))=2 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "")=""]
Delivery > DeliveryLocation > Address > CountrySubentity[string-length(normalize-space(.))=2 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "")=""]Only when: invoice contains a delivery address node
Description
delivery province
Only when
invoice contains a delivery address node
XPath
cac:Delivery/cac:DeliveryLocation/cac:Address/cbc:CountrySubentity[string-length(normalize-space(.))=2 and translate(normalize-space(.), "ABCDEFGHIJKLMNOPQRSTUVWXYZ", "")=""]
source line VAT percentage. Transform: numberFormat
Required
✓Yes
XPath
cac:Item/cac:ClassifiedTaxCategory/cbc:Percent
Item > AdditionalItemProperty[Name="Natura"] > Value[contains("|N1|N2.1|N2.2|N3.1|N3.2|N3.3|N3.4|N3.5|N3.6|N4|N5|N6.1|N6.2|N6.3|N6.4|N6.5|N6.6|N6.7|N6.8|N6.9|N7|", concat("|", normalize-space(.), "|"))]Only when: line VAT rate is zero; line contains an explicit FatturaPA Natura
Only when: invoice contains at least one source line
Description
total calculated from VAT summaries. Computed: getValue(output, 'fatturaElettronicaBody[0].datiBeniServizi.datiRiepilogo'). Transform: calculateInvoiceItTotalAmount