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
normalize-space(cac:PartyName/cbc:Name) != '' 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) 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 satisfies (normalize-space($p) = normalize-space($s) and upper-case(normalize-space(string($p/@schemeID))) = upper-case(normalize-space(string($s/@schemeID))))) else not(upper-case(normalize-space(cac:PartyName/cbc:Name)) = upper-case(normalize-space(../cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:RegistrationName))))- 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