Rules / IBR-103-AE
When the Invoiced item VAT category code is VAT reverse charge, then Buyer VAT identifier must be provided
When the Invoiced item VAT category code (ibt-151) is VAT reverse charge, then Buyer VAT identifier (ibt-048) must be provided.
Fails
<cac:ClassifiedTaxCategory><cbc:ID>AE</cbc:ID>…</cac:ClassifiedTaxCategory>
<!-- buyer has no PartyTaxScheme/CompanyID -->
Fix
Reverse charge needs the buyer's TRN: add cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID. If the buyer has no TRN, reverse charge (AE) is probably the wrong category.
Schematron
- Context
cac:InvoiceLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT'] | cac:CreditNoteLine/cac:Item/cac:ClassifiedTaxCategory[normalize-space(cbc:ID) = 'AE'][cac:TaxScheme/normalize-space(upper-case(cbc:ID))='VAT']- Test
exists(../../../cac:AccountingCustomerParty/cac:Party/cac:PartyTaxScheme/cbc:CompanyID)
Official text: When the Invoiced item VAT category code (ibt-151) is VAT reverse charge, then Buyer VAT identifier (ibt-048) MUST be provided.