fatalEN 16931code list ruleCIIUBL
The document type code MUST be coded by the invoice and credit note related code lists of UNTDID 1001.
The document type code (BT-3) is not in the UNTDID 1001 subset EN 16931 allows.
Use one of: 380 commercial invoice, 381 credit note, 384 corrected invoice, 386 prepayment invoice, 389 self-billed invoice, 326 partial invoice, 393 factored invoice, 875/876/877 construction. Invoices and credit notes have separate lists - 381 is only valid on a CreditNote document, not in cbc:InvoiceTypeCode.
CII — context rsm:ExchangedDocument/ram:TypeCode
((not(contains(normalize-space(.), ' ')) and contains(' 71 80 81 82 83 84 102 130 202 203 204 211 218 219 261 262 295 296 308 325 326 331 380 381 382 383 384 385 386 387 388 389 390 393 394 395 396 420 456 457 458 471 472 473 500 501 502 503 527 532 553 575 623 633 751 780 817 870 875 876 877 935 ', concat(' ', normalize-space(.), ' '))))UBL — context cbc:InvoiceTypeCode | cbc:CreditNoteTypeCode
(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(.), ' ')))))