VRBL-INV-DK-1p0-8

Basic Info

Rule The Buyer Party Legal Entity Company ID must be marked as Danish DIGSTORG when it is used.
Context /ubl:Invoice/cac:AccountingCustomerParty
Pattern vrbl-invoice-dk-1p0
Severity fatal

Implementation

not($DKSupplierCountry = 'DK')
or
not(boolean(cac:Party/cac:PartyLegalEntity/cbc:CompanyID[not(@schemeID = '0184')]))