Hoppa till innehållet
Fakturaguru
BR-CL-01FelEN 16931 (CEN)

Ogiltig kod för fakturatyp

Ett fel betyder att fakturan inte uppfyller reglerna. Den avvisas normalt när den skickas via Peppol.

Vad regeln betyder

Fakturatypkoden (BT-3) måste komma från de delar av kodlistan UNTDID 1001 som gäller fakturor respektive kreditnotor. Vanliga koder är 380 (faktura) och 381 (kreditnota). En faktura (Invoice) får inte ha kod 381, och en kreditnota (CreditNote) får inte ha kod 380.

Så rättar du felet

Kontrollera att dokumenttyp och kod hör ihop: 380 i en Invoice och 381 i en CreditNote. Ska en kreditering skickas som faktura med negativa belopp, använd 380.

Officiell regeltext

The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
Teknisk kontroll (XPath)
Kontext – där regeln kontrolleras
cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
Test – måste vara sant, annars visas felet
(self::cbc:InvoiceTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 71 80 81 82 84 102 130 202 203 204 211 218 219 295 325 326 331 380 382 383 384 385 386 387 388 389 390 393 394 395 456 457 471 472 473 500 501 527 553 575 623 633 751 780 817 870 875 876 877 935 ', concat(' ', normalize-space(.), ' '))))) or (self::cbc:CreditNoteTypeCode and ((not(contains(normalize-space(.), ' ')) and contains(' 81 83 261 262 296 308 381 396 420 458 502 503 532 ', concat(' ', normalize-space(.), ' ')))))

Källa: Peppol BIS Billing 3.0.21 · EN 16931 1.3.16.

Begrepp i regeln