closes #423, closes #465

This commit is contained in:
jstaerk
2024-09-20 17:54:17 +02:00
parent 5476b09c06
commit c8a2f7e204
2 changed files with 12 additions and 2 deletions

View File

@@ -732,12 +732,13 @@ public class Main {
ze.disableFacturX();
}
ze.setXML(Files.readAllBytes(Paths.get(xmlName)));
for (FileAttachment attachment : attachments) {
ze.attachFile(attachment.getFilename(), attachment.getData(), attachment.getMimetype(), attachment.getRelation());
}
ze.setXML(Files.readAllBytes(Paths.get(xmlName)));
ze.export(outName);
System.out.println("Written to " + outName);