Rules / IBR-136-AE
Buyer legal registration identifier must be present when Invoice type code is 'Out of scope of VAT' or 'Credit note related to goods or services'
Buyer legal registration identifier (IBT-047) must be present when Invoice type code [IBT-003] is 'Out of scope of VAT' or 'Credit note related to goods or services'.
Fails
<cbc:InvoiceTypeCode>480</cbc:InvoiceTypeCode>
<!-- buyer has no cac:PartyLegalEntity/cbc:CompanyID -->
Fix
On out-of-scope invoices (type 480) and credit notes 81, add the buyer's legal registration number (for example the trade licence) in cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID.
Schematron
- Context
/ubl:Invoice | /cn:CreditNote- Test
not(cbc:InvoiceTypeCode = "480" or cbc:CreditNoteTypeCode = "81") or exists(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID)
Official text: Buyer legal registration identifier (IBT-047) must be present when Invoice type code [IBT-003] is 'Out of scope of VAT' or 'Credit note related to goods or services'