DK-R-006: For Danish suppliers bank account and registration account is mandatory if payment means…
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[DK-R-006]-For Danish suppliers bank account and registration account is mandatory if payment means is 31 or 42
not(((cbc:PaymentMeansCode = '31') or (cbc:PaymentMeansCode = '42'))
and not((normalize-space(cac:PayeeFinancialAccount/cbc:ID/text()) != '') and (normalize-space(cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID/text()) != ''))
)DK-R-006 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
For a UBL invoice where both the supplier country and customer country are DK, this rule checks each cac:PaymentMeans. If cbc:PaymentMeansCode is 31 or 42, then both cac:PayeeFinancialAccount/cbc:ID and cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID must have a value after whitespace is removed (the test uses normalize-space() != ''). The message calls these the bank account and registration account. Because the severity is fatal, an invoice that does not satisfy this fails validation.
How to fix
For each cac:PaymentMeans with cbc:PaymentMeansCode equal to 31 or 42, ensure cac:PayeeFinancialAccount/cbc:ID contains a non-empty bank account number and cac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:ID contains a non-empty registration account/registration number (neither value may be only whitespace). If the payment means is not actually one of those codes, change cbc:PaymentMeansCode to the correct value.
Guidance on this rule. The original text above is authoritative.
Where to go next
No published Peppol BIS Billing UBL release comparison lists a change to DK-R-006.
Validate an invoice against these rules · All release changes