Rules / IBR-123-AE
Line VAT Information (IBG - 30) must be there and can occur maximum once except in case when invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services'
Line VAT Information (IBG - 30) must be there and can occur maximum once except in case when invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services'.
Fails
<cbc:InvoiceTypeCode>480</cbc:InvoiceTypeCode>
…
<cac:Item>
<!-- no cac:ClassifiedTaxCategory, or two of them -->
</cac:Item>
Fix
On invoices with type code 480 or credit notes with 81, give every line exactly one cac:ClassifiedTaxCategory under cac:Item.
Schematron
- Context
cac:InvoiceLine | cac:CreditNoteLine- Test
((../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81" or ../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480") and count(cac:Item/cac:ClassifiedTaxCategory) = 1) or not(../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "81" or ../(cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode) = "480")
Official text: Line VAT Information (IBG - 30) MUST be there and can occur maximum once except in case when invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services'.