num-num / ubl-invoice

A modern object-oriented PHP library to create valid UBL and Peppol BIS files
MIT License
81 stars 70 forks source link

optional attachment for AdditionalDocumentReference #43

Closed pjcarly closed 1 year ago

pjcarly commented 1 year ago

Attachment for AdditionalDocumentReference is optional.

This is a perfectly valid AdditionalReference.

  <cac:AdditionalDocumentReference>
    <cbc:ID>UBL.BE</cbc:ID>
    <cbc:DocumentDescription>UBL Invoice By Syneton (2.0.1.24)</cbc:DocumentDescription>
  </cac:AdditionalDocumentReference>

In case no Attachment is provided, Attachment is added as an empty element, and that is a violation of the spec.