DK-R-016: For Danish Suppliers, a Credit note cannot have a negative total (PayableAmount)
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[DK-R-016]-For Danish Suppliers, a Credit note cannot have a negative total (PayableAmount)
not((boolean(/ubl-creditnote:CreditNote) and ($DKCustomerCountry = 'DK'))
and (number(cac:LegalMonetaryTotal/cbc:PayableAmount/text()) < 0)
)DK-R-016 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
This fatal Peppol rule applies to UBL CreditNote and Invoice documents where the supplier country is DK. Despite the message saying Danish suppliers, the test only rejects a document when it is a CreditNote, the customer country is also DK, and cac:LegalMonetaryTotal/cbc:PayableAmount is a negative number (less than 0). Invoices are not affected because the test checks for a CreditNote element.
How to fix
In the credit note, set cac:LegalMonetaryTotal/cbc:PayableAmount to a value greater than or equal to 0. If the system produces negative payable amounts for credit notes, adjust the mapping so the payable amount is non-negative for DK-to-DK credit notes. Do not change the supplier or customer country solely to avoid this rule.
Guidance on this rule. The original text above is authoritative.
Where to go next
DK-R-016 changed in 1 published Peppol BIS Billing UBL release comparison:
- DK-R-016 in 3.0.2 → 3.0.10: Test expression rewritten
Validate an invoice against these rules · All release changes