This commit is contained in:
jstaerk
2025-01-27 11:54:23 +01:00
parent 796f5333ac
commit 16c6f22566
2 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,6 @@
#705 #705
#707
-#708
2.16.1 2.16.1
======= =======

View File

@@ -1116,11 +1116,17 @@ public class ZUGFeRDInvoiceImporter {
* *
* @return the file attachments embedded in XML (using base64) decoded as byte array, * @return the file attachments embedded in XML (using base64) decoded as byte array,
* for PDF embedded files in FX use getFileAttachmentsPDF() * for PDF embedded files in FX use getFileAttachmentsPDF()
* may return empty array
* @deprecated use invoice.getAdditionalReferencedDocuments * @deprecated use invoice.getAdditionalReferencedDocuments
*/ */
@Deprecated @Deprecated
public List<FileAttachment> getFileAttachmentsXML() { public List<FileAttachment> getFileAttachmentsXML() {
if (importedInvoice.getAdditionalReferencedDocuments()!=null) {
return new ArrayList<>(Arrays.asList(importedInvoice.getAdditionalReferencedDocuments())); return new ArrayList<>(Arrays.asList(importedInvoice.getAdditionalReferencedDocuments()));
} else {
return new ArrayList<>();
}
} }
/*** /***