PintLint

Rules / IBR-106

IBR-106 error

The Payee legal identifier

The Payee legal identifier (ibt-061) must occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04).

Fails

<cac:PayeeParty>
  <cbc:CompanyID>…</cbc:CompanyID>
  <cbc:CompanyID>…</cbc:CompanyID>
</cac:PayeeParty>

Fix

Keep a single cbc:CompanyID here and delete the duplicates. If both values matter, one of them belongs in a different field.

Schematron
Context
cac:PayeeParty
Test
(count(cac:PartyLegalEntity/cbc:CompanyID) <= 1) or ((cac:PartyName/cbc:Name) = (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))

Official text: The Payee legal identifier (ibt-061) MUST occur maximum once in the Invoice, if the Payee (ibg-10) is different from the Seller (ibg-04).

Official · PINT shared rules. Severity: error. Runs on UBL XML.

Check an invoice