BT-124 "External document location" shall contain an absolute URL with a valid scheme.
If ram:URIID is present, its value must be an absolute URL with a valid scheme. A relative value or one that does not match the expected URL format violates this rule.
BT-124 contains the external location of the additional supporting document. An absolute URL with a valid scheme identifies that location as a web address.
The external document reference contains a URL that does not match the expected format. You can correct the reference or omit it if no external location is being provided.
- Correct
ram:URIIDto an absolute URL with a valid scheme, or omitram:URIID. - Check the value for
AdditionalReferencedDocument.URIIDor theuriIDparameter in the call toAddAdditionalReferencedDocument(...). - Generate the invoice again and validate it once more.
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:URIID>documents/file.pdf</ram:URIID> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:URIID>https://example.com/documents/file.pdf</ram:URIID> </ram:AdditionalReferencedDocument>
AdditionalReferencedDocument.URIID(BT-124)FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID)(uriID: BT-124)
Technical details
The test permits ram:URIID to be absent or requires its value to match $XR-URL-REGEX.
The reference to an additional referenced document with ram:TypeCode 916 in ram:AdditionalReferencedDocument.
rule/@context)assert/@test)