Only the following codes from code list UNTDID 1001 should be transmitted with the element "Invoice type code" (BT-3): 326 (Partial invoice), 380 (Commercial invoice), 384 (Corrected invoice), 389 (Self-billed invoice) and 381 (Credit note), 875 (Partial construction invoice), 876 (Partial final construction invoice), 877 (Final construction invoice).
The normalized content of ram:TypeCode is not one of the allowed codes 326, 380, 384, 389, 381, 875, 876 or 877.
The invoice type code identifies the kind of document. Only the explicitly listed codes are allowed by this rule.
Your invoice type code is not among the values allowed by this rule. Replace it with one of the permitted codes.
- Check the value in
ram:TypeCodeunderrsm:ExchangedDocument. - Use one of the codes
326,380,384,389,381,875,876or877. - Generate the invoice again and validate it once more.
<rsm:ExchangedDocument> <ram:TypeCode>999</ram:TypeCode> </rsm:ExchangedDocument>
<rsm:ExchangedDocument> <ram:TypeCode>380</ram:TypeCode> </rsm:ExchangedDocument>
FacturXInvoice.Type(BT-3)
Technical details
The test removes leading and trailing whitespace and compares the remaining value of ram:TypeCode with the specified list.
The rule checks the invoice type in ram:TypeCode under rsm:ExchangedDocument.
rule/@context)assert/@test)