An Invoice shall have an Invoice type code (BT-3).
The ram:TypeCode element in the invoice document is empty. The invoice type code BT-3 is therefore missing.
BT-3 identifies the type of invoice document. The code states what kind of invoice it is.
The invoice type code is missing from ram:ExchangedDocument. You can add the code in the ram:TypeCode element.
- Check the value of
FacturXInvoice.Type. - Ensure that
ram:ExchangedDocument/ram:TypeCodeis not empty. - Generate the invoice again and validate it again.
<ram:ExchangedDocument> <ram:TypeCode/> </ram:ExchangedDocument>
<ram:ExchangedDocument> <ram:TypeCode>380</ram:TypeCode> </ram:ExchangedDocument>
FacturXInvoice.Type(BT-3)
Technical details
The XPath checks whether ram:ExchangedDocument/ram:TypeCode contains a non-empty value.
The rule applies to ram:TypeCode in the invoice document ram:ExchangedDocument.
rule/@context)assert/@test)