Oficjalna treść reguły
[DK-R-004] When specifying non-VAT Taxes for Danish customers, Danish suppliers MUST use the AllowanceChargeReasonCode="ZZZ" and MUST be specified in AllowanceChargeReason; Either as the 4-digit Tax category or must include a #, but the # is not allowed as first and last character
Tekst normatywny jest w języku angielskim i cytowany bez zmian.
Dlaczego pojawia się ten błąd
Element lub kombinacja nie jest dozwolona w tym kontekście. Plik zawiera coś, czego standard zabrania: element, którego nie wolno powtarzać, wartość sprzeczną z innym polem albo dane należące do innego profilu.
Jak to naprawić
Usuń problematyczny element lub uspójnij oba pola zgodnie z treścią reguły. Jeśli program dodaje element automatycznie, poszukaj ustawienia profilu (np. „EN 16931” vs „EXTENDED”) lub opcji eksportu, która go pomija.
Co sprawdza walidator
Sprawdzany element (kontekst):
UBL
cac:AllowanceCharge[$DKSupplierCountry = 'DK' and $DKCustomerCountry = 'DK']Test (XPath):
not((cbc:AllowanceChargeReasonCode = 'ZZZ')
and not(((string-length(normalize-space(cbc:AllowanceChargeReason/text())) = 4)
and (number(cbc:AllowanceChargeReason) >= 0)
and (number(cbc:AllowanceChargeReason) <= 9999)) or
(((cbc:AllowanceChargeReason and contains(cbc:AllowanceChargeReason, '#')
and not(starts-with(cbc:AllowanceChargeReason, '#'))
and not(ends-with(cbc:AllowanceChargeReason, '#')))) )
)
)CII
rsm:CrossIndustryInvoice[$DKSupplierCountry = 'DK']Test (XPath):
not((($DKCustomerCountry = 'DK') and (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:ReasonCode = 'ZZZ'))
and not ((string-length(normalize-space(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason/text())) = 4
and number(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason) >= 0
and number(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason <= 9999)) or
(((rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason
and contains(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason, '#')
and not(starts-with(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason, '#'))
and not(ends-with(rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:SpecifiedTradeAllowanceCharge/ram:Reason, '#')))) )
)
)
Sprawdź swoją fakturę
Upuść plik XML lub PDF w walidatorze; każda naruszona reguła ma link do swojej strony tutaj. Bezpłatnie, bez konta, plik nie jest zapisywany.
To samo sprawdzenie przez API:
curl -F file=@invoice.xml https://einvoicechecker.com/v1/validatePowiązane reguły
DK-R-002Duńscy dostawcy MUSZĄ podać osobę prawną (numer CVR)DK-R-003Jeśli duński dostawca podaje ItemClassification, UNSPSC w wersji 19.05.01 lub…DK-R-005Dla duńskich dostawców dozwolone są następujące kody formy płatnościDK-R-006Dla duńskich dostawców rachunek bankowy i numer rejestracyjny są obowiązkowe, jeśli…DK-R-007Dla duńskich dostawców PaymentMandate/ID i PayerFinancialAccount/ID są wymagane, gdy…DK-R-008Duńscy dostawcy: PaymentID jest obowiązkowy i MUSI zaczynać się od 01#, 04# lub 15#…DK-R-009Duńscy dostawcy: jeśli PaymentID zaczyna się od 04# lub 15#, 16 cyfr…DK-R-010Dla duńskich dostawców z PaymentMeansCode 93 PaymentID jest obowiązkowy
Najczęstsze pytania
Co oznacza DK-R-004?
DK-R-004 to krajowa reguła peppol: When specifying non-VAT Taxes for Danish customers, Danish suppliers MUST use the AllowanceChargeReasonCode="ZZZ" and MUST be specified in AllowanceChargeReason; Either as the 4-digit Tax category or must include a #, but the # is not allowed as first and last character
Czy moja faktura zostanie odrzucona z powodu DK-R-004?
Tak. DK-R-004 ma status „krytyczny”; walidatory (KSeF, punkty dostępowe Peppol, KoSIT) odrzucają fakturę do czasu poprawienia błędu.
Jakich formatów dotyczy DK-R-004?
Tylko gdy sprzedawca (w niektórych regułach nabywca) ma siedzibę we wskazanym kraju; wyzwalaczem jest kod kraju strony. Składnia: UBL i CII.
Źródło: Peppol BIS Billing 3.0.20 national rules (November 2025). Katalog wygenerowany z oficjalnych zestawów reguł dnia 2026-10-15.