VRBL-INV-DE-PEPPOL-2

Basic Info

Rule The Attachment Filename must be unique.
Context /ubl:Invoice
Pattern vrbl-invoice-de-peppol-3p0
Severity fatal

Implementation

not($DECustomerCountry = 'DE' and $DESupplierCountry = 'DE')
or
count(cac:AdditionalDocumentReference) = count(cac:AdditionalDocumentReference[not(cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename = preceding-sibling::cac:AdditionalDocumentReference/cac:Attachment/cbc:EmbeddedDocumentBinaryObject/@filename)])