Document joint au maximum une fois

Avertissement BR-TMP-5 XRechnung

BT-125 « Document joint » (ram:AttachmentBinaryObject) peut apparaître au maximum une fois dans « Documents justificatifs supplémentaires » (BG-24).

Recommandation : la facture reste valide, mais devrait être corrigée afin de pouvoir être traitée automatiquement.
Ce qui ne va pas

Dans ce document justificatif supplémentaire, ram:AttachmentBinaryObject apparaît plusieurs fois. Le document joint BT-125 ne peut figurer qu’une seule fois au maximum dans ce document.

Ce que signifie la règle

BT-125 contient le document joint dans le groupe de documents BG-24. La limite d’un seul ram:AttachmentBinaryObject au maximum évite d’associer plusieurs contenus de document au même document justificatif.

Champs concernés BT-125 BG-24
Veuillez joindre le document justificatif une seule fois au maximum

Le document justificatif supplémentaire contient plusieurs éléments ram:AttachmentBinaryObject. Le contenu du document ne peut être joint qu’une seule fois dans ce document.

Que faire ?
  1. Supprimez les éléments ram:AttachmentBinaryObject en trop du document justificatif supplémentaire.
  2. Vérifiez AdditionalReferencedDocument.AttachmentBinaryObject ou le paramètre attachmentBinaryObject dans l’appel à AddAdditionalReferencedDocument(...).
  3. Générez de nouveau la facture et vérifiez-la à nouveau.
À quoi cela ressemble
✗ Déclenche le message
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:AttachmentBinaryObject>QUJD</ram:AttachmentBinaryObject>
  <ram:AttachmentBinaryObject>REVG</ram:AttachmentBinaryObject>
</ram:AdditionalReferencedDocument>
✓ Correct
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:AttachmentBinaryObject>QUJD</ram:AttachmentBinaryObject>
</ram:AdditionalReferencedDocument>
À vérifier dans FactoorSharp
  • AdditionalReferencedDocument.AttachmentBinaryObject (BT-125)
  • AdditionalReferencedDocument.Filename (BT-125-2)
  • FacturXInvoice.AddAdditionalReferencedDocument(id, typeCode, issueDateTime, name, referenceTypeCode, attachmentBinaryObject, filename, uriID) (attachmentBinaryObject: BT-125)
Détails techniques

Le test compte les éléments ram:AttachmentBinaryObject dans le ram:AdditionalReferencedDocument courant et en autorise un seul au maximum.

Où la règle s'applique

Documents justificatifs supplémentaires dans ram:AdditionalReferencedDocument avec ram:TypeCode 916.

Message d'origine du Schematron
BT-125 "Attached document" (ram:AttachmentBinaryObject) darf innerhalb von "Additional Supporting documents" (BG-24) höchstens einmal vorkommen.
Contexte (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode = '916']
Expression de contrôle (assert/@test)
count(ram:AttachmentBinaryObject) <= 1
Modifications dans les règles de validation de la KoSIT
  • 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