UBL-SR-21: Payee legal registration identifier shall occur maximum once, if the Payee is different…
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-SR-21]-Payee legal registration identifier shall occur maximum once, if the Payee is different from the Seller
(count(cac:PartyLegalEntity/cbc:CompanyID) <= 1) and ((cac:PartyName/cbc:Name) != (../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))UBL-SR-21 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected.
What this rule requires
The rule requires that the PayeeParty contains at most one cac:PartyLegalEntity/cbc:CompanyID element and that the PayeeParty's cac:PartyName/cbc:Name is not equal to the Seller's cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName. Because the test uses and, both conditions must hold. The message says the identifier limit applies only if the Payee is different from the Seller, but the test also requires the names to differ, so a document may fail even when the identifier count is within the limit, if the names are equal or the PayeeParty has no name.
How to fix
Ensure cac:PayeeParty/cac:PartyLegalEntity/cbc:CompanyID occurs at most once (0 or 1), and that cac:PayeeParty/cac:PartyName/cbc:Name is present and differs from the seller's cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName. If the payee is the same as the seller, omit cac:PayeeParty.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to UBL-SR-21.
Validate an invoice against these rules · All release changes