DK-R-014: For Danish Suppliers it is mandatory to use schemeID when PartyLegalEntity/CompanyID is…
Peppol BIS Billing 3.0.2 · UBL
fatalcountry
Original rule text
For Danish Suppliers it is mandatory to use schemeID when PartyLegalEntity/CompanyID is used for AccountingCustomerParty or AccountingSupplierParty
Stored validation assertion
not(($supplierCountry = 'DK') and (((boolean(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID)) and (normalize-space(cac:AccountingSupplierParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID/@schemeID) = '')) or ((boolean(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID)) and (normalize-space(cac:AccountingCustomerParty/cac:Party/cac:PartyLegalEntity/cbc:CompanyID/@schemeID) = '')) ) )
DK-R-014 is a fatal rule in the country layer of Peppol BIS Billing 3.0.2 · UBL. An invoice that breaks it is rejected.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to DK-R-014.