VRBL-INV-IS-1p0-4
Basic Info
|
Rule
|
When the Seller Country Code and the Buyer Country Code are 'IS', the Buyer Legal Registration ID should not be empty and should be provided with SchemeID '0196'. |
|
Context
|
/ubl:Invoice/cac:AccountingCustomerParty/cac:Party
|
|
Pattern
|
vrbl-invoice-is-peppolbis-3p0 |
|
Severity
|
fatal |
Implementation
not(
../../cac:AccountingSupplierParty/cac:Party/cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'IS'
and
cac:PostalAddress/cac:Country/cbc:IdentificationCode = 'IS'
)
or
(
normalize-space(cac:PartyLegalEntity/cbc:CompanyID) != ''
and
cac:PartyLegalEntity/cbc:CompanyID/@schemeID = '0196'
)