Attribute '@format' is required in this context.
For a referenced document with ram:TypeCode 130, the format attribute is missing from qdt:DateTimeString in the issue date.
The required format attribute indicates how to interpret the issue date of the referenced document.
The issue date is missing the format attribute for the referenced document with ram:TypeCode 130. Add the format attribute so the date value can be interpreted.
- Find the affected
ram:AdditionalReferencedDocumentwithram:TypeCode130. - Add
formattoqdt:DateTimeStringunderram:FormattedIssueDateTime. - Generate the invoice again and validate it.
<ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> <ram:FormattedIssueDateTime> <qdt:DateTimeString>20240115</qdt:DateTimeString> </ram:FormattedIssueDateTime> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>130</ram:TypeCode> <ram:FormattedIssueDateTime> <qdt:DateTimeString format="102">20240115</qdt:DateTimeString> </ram:FormattedIssueDateTime> </ram:AdditionalReferencedDocument>
Technical details
In the context of a ram:AdditionalReferencedDocument with ram:TypeCode 130, the existence of the format attribute on qdt:DateTimeString is checked.
The rule applies to qdt:DateTimeString under ram:FormattedIssueDateTime of a ram:AdditionalReferencedDocument with ram:TypeCode 130.
rule/@context)assert/@test)