IBR-017

If a Payee (ibg-10) is provided in the Self-billed invoice, then the Payee name (ibt-059) MUST be provided and the Payee MUST be different from the Seller (ibg-04). The Payee and the Seller are compared, in order of precedence, on their legal registration identifier (ibt-061), their party identifier (ibt-060) and, as a last resort, their name (ibt-059).

About

ID
ibr-017
Flag
fatal
Context
cac:PayeeParty
Test
exists(cac:PartyName/cbc:Name[normalize-space() != '']) and (if (cac:PartyLegalEntity/cbc:CompanyID and ../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID) then not(some $p in cac:PartyLegalEntity/cbc:CompanyID satisfies some $s in ../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID satisfies (normalize-space($p) = normalize-space($s) and upper-case(normalize-space(string($p/@schemeID))) = upper-case(normalize-space(string($s/@schemeID))))) else if (cac:PartyIdentification/cbc:ID[upper-case(normalize-space(string(@schemeID))) != 'SEPA'] and ../cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[upper-case(normalize-space(string(@schemeID))) != 'SEPA']) then not(some $p in cac:PartyIdentification/cbc:ID[upper-case(normalize-space(string(@schemeID))) != 'SEPA'] satisfies some $s in ../cac:AccountingSupplierParty/cac:Party/cac:PartyIdentification/cbc:ID[upper-case(normalize-space(string(@schemeID))) != 'SEPA'] satisfies (normalize-space($p) = normalize-space($s) and upper-case(normalize-space(string($p/@schemeID))) = upper-case(normalize-space(string($s/@schemeID))))) else not(some $n in cac:PartyName/cbc:Name satisfies some $s in ../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName satisfies upper-case(normalize-space($n)) = upper-case(normalize-space($s))))
Rules
  • IBR-017 If a Payee (ibg-10) is provided in the Self-billed invoice, then the Payee name (ibt-059) MUST be provided and the Payee MUST be different from the Seller (ibg-04). The Payee and the Seller are compared, in order of precedence, on their legal registration identifier (ibt-061), their party identifier (ibt-060) and, as a last resort, their name (ibt-059).
Syntax binding