fatalEN 16931EN 16931 business ruleCIIUBLBT-3
An Invoice shall have an Invoice type code (BT-3).
The Invoice type code (BT-3) is missing.
Add BT-3 from UNTDID 1001. 380 = commercial invoice, 381 = credit note, 384 = corrected invoice, 386 = prepayment invoice, 389 = self-billed invoice. In UBL a credit note is a separate CreditNote document with cbc:CreditNoteTypeCode; do not put 381 in an Invoice.
CII — context /rsm:CrossIndustryInvoice
normalize-space(rsm:ExchangedDocument/ram:TypeCode) != ''
UBL — context /ubl:Invoice | /cn:CreditNote
normalize-space(cbc:InvoiceTypeCode) != '' or normalize-space(cbc:CreditNoteTypeCode) !=''