stephanstapel / ZUGFeRD-csharp

C# assembly for creating and reading ZUGFeRD invoices
Apache License 2.0
214 stars 114 forks source link

AddAdditionalReferencedDocument only works with ZUGFeRDFormats.CII #329

Closed Balin71 closed 3 months ago

Balin71 commented 3 months ago

Hi,

You can add a document to the InvoiceDescriptor. Saving also works without errors in both formats (UBL, CII). But the document is only inserted into the XML in ZUGFeRDFormats.CII. Is this supposed to be the case or is this a bug? I need the document in the UBL version.

desc.Save(stream, ZUGFeRDVersion.Version22, Profile.XRechnung,ZUGFeRDFormats.UBL); > not working desc.Save(stream, ZUGFeRDVersion.Version22, Profile.XRechnung,ZUGFeRDFormats.CII); > works

Info: The additional document is a PDF file

Best regards, Steffen