Konto
Polski

DK-R-004: Podając podatki inne niż VAT dla duńskich klientów, duńscy dostawcy MUSZĄ używać…

Krajowa reguła Peppol · Błąd · UBL, CII

StandardReguły krajowe Peppol BIS Billing 3.0 (NL, DE, IT, SE, DK, NO, GR, IS)KrajDaniaWagaBłąd: faktura zostaje odrzuconaSkładniaUBL, CIIDotyczyTylko gdy sprzedawca (w niektórych regułach nabywca) ma siedzibę we wskazanym kraju; wyzwalaczem jest kod kraju strony.

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.

Sprawdź swoją fakturę →

To samo sprawdzenie przez API:

curl -F file=@invoice.xml https://einvoicechecker.com/v1/validate

Powiązane reguły

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.