DK-R-009: For Danish Suppliers if the PaymentID is prefixed with 04# or 15# the 16…
fatalUBL
What this error means and how to fix it
A national rule of Peppol BIS Billing 3.0 for the country in the rule prefix (for example NO, DK, IT, SE, GR): it usually applies when the seller is in that country. This is an error: the invoice is rejected until it is fixed.
This error needs information only you have, so it is not repaired automatically. The free check shows every finding in the file with its location; if other errors in the same file are in the automatic set (totals, VAT breakdown, rounding, element order), the result page offers the corrected file for 9 €.
Rule text
[DK-R-009]-For Danish Suppliers if the PaymentID is prefixed with 04# or 15# the 16 digits instruction Id must be added to the PaymentID eg. "04#1234567890123456" when Payment means equals 50 (Giro)
Where the rule is checked (XPath context and test)
Syntax
Severity
Context (XPath)
Test (XPath)
Peppol-UBL
fatal
ubl-invoice:Invoice[$DKSupplierCountry = 'DK' and $DKCustomerCountry = 'DK']/cac:PaymentMeans
not((cbc:PaymentMeansCode = '50') and ((substring(cbc:PaymentID, 1, 3) = '04#') or (substring(cbc:PaymentID, 1, 3) = '15#')) and not(string-length(cbc:PaymentID) = 19) )