[CII-SR-476] - Un seul AdditionalReferencedDocument AttachmentBinaryObject BT-125 est autorisé avec TypeCode 916.
Plusieurs éléments AttachmentBinaryObject figurent sous des éléments AdditionalReferencedDocument dont le TypeCode vaut 916. Cette combinaison ne peut apparaître qu’une seule fois au maximum au total.
La règle limite à un seul document incorporé avec le code de type de document 916 (BT-125). Le nombre de pièces jointes pour ce type de référence reste ainsi sans ambiguïté.
La facture contient plusieurs documents incorporés avec le TypeCode 916. Vous pouvez limiter leur nombre à un seul document.
- Vérifiez les entrées
AdditionalReferencedDocumentcréées avec leTypeCode916. - Vérifiez l’appel à
AddAdditionalReferencedDocument(...)et la valeur deattachmentBinaryObject. - Assurez-vous qu’il n’y a pas plus d’un élément
AttachmentBinaryObjectassocié au total. - Générez de nouveau la facture et vérifiez-la.
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>...</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument> <ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>...</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument>
<ram:AdditionalReferencedDocument> <ram:TypeCode>916</ram:TypeCode> <ram:AttachmentBinaryObject>...</ram:AttachmentBinaryObject> </ram:AdditionalReferencedDocument>
AdditionalReferencedDocument.AttachmentBinaryObject(BT-125)AdditionalReferencedDocument.Filename(BT-125-2)FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID)(attachmentBinaryObject: BT-125)
- Information EN16931 XRechnung (CII) – overwrites CEN severity level "warning" because CII-SR-476 has a wrong rule context (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-5
- Information EN16931 XRechnung Extension (CII) – overwrites CEN severity level "warning" because CII-SR-476 has a wrong rule context (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-5
- Information EN16931 XRechnung CVD (CII) – overwrites CEN severity level "warning" because CII-SR-476 has a wrong rule context (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-5
Détails techniques
Le test compte les éléments AttachmentBinaryObject sous les éléments AdditionalReferencedDocument dont le TypeCode normalisé est égal à la valeur textuelle 916. Le nombre doit être inférieur ou égal à 1.
La règle s’applique aux documents référencés dans ApplicableHeaderTradeAgreement de la facture.
rule/@context)assert/@test)- 2026-08-312026-08-31 · Addedcustom level "information" for `CII-SR-475` and `CII-SR-476` because both rules have a wrong rule context in CEN Schematron 1.3.16 (see https://github.com/ConnectingEurope/eInvoicing-EN16931/issues/508); replaced by BR-TMP-4 and BR-TMP-5 in XRechnung Schematron