The element <name/> "Contract reference" (BT-12) shall be provided.
A non-empty ram:IssuerAssignedID is missing from ram:ContractReferencedDocument. An empty value or one containing only whitespace does not satisfy the check.
The contract reference links the invoice to the underlying contract. It is required as business information BT-12.
The invoice is missing the contract reference, or its identifier is empty. You can add the contract identifier to the contract reference details.
- Check whether
ram:ContractReferencedDocumentis present. - Enter the contract identifier using
SetContractReferencedDocument(...). - Make sure
ram:IssuerAssignedIDcontains a non-empty value. - Regenerate the invoice and validate it again.
<ram:ContractReferencedDocument> <ram:IssuerAssignedID/> </ram:ContractReferencedDocument>
<ram:ContractReferencedDocument> <ram:IssuerAssignedID>CONTR-123</ram:IssuerAssignedID> </ram:ContractReferencedDocument>
FacturXInvoice.ContractReferencedDocument(Id of the contract referenced document: BT-12)FacturXInvoice.SetContractReferencedDocument(contractNo, contractDate)(BT-12)
Technical details
The test checks whether ram:ContractReferencedDocument/ram:IssuerAssignedID exists and contains a non-empty value after normalization.
The rule applies in ram:ApplicableHeaderTradeAgreement to the contract reference in ram:ContractReferencedDocument.
rule/@context)assert/@test)