PintLint

Rules / IBR-106

The Payee legal identifier must occur maximum once in the Invoice, if the Payee is different from the Seller

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>
  <cac:PartyLegalEntity><cbc:CompanyID>…</cbc:CompanyID></cac:PartyLegalEntity>
  <cac:PartyLegalEntity><cbc:CompanyID>…</cbc:CompanyID></cac:PartyLegalEntity>
</cac:PayeeParty>

Fix

Keep one cac:PartyLegalEntity/cbc:CompanyID in cac:PayeeParty. If the payee is the seller, you can leave cac:PayeeParty out.

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 your invoice for this rule