Rules / IBR-136-AE
IBR-136-AE error
Buyer legal registration identifier must be present when Invoice type code is 'Out of…
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>
<!-- the data this document type requires is missing or wrong -->
Fix
Type code 480 triggers this rule. Add what it asks for, or check the type code is right.
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'