Update history, prevent counting non-pdf-files as PDF in toecount, default export filename for ZF2 files now factur-x.xml in toecount

This commit is contained in:
Jochen Stärk
2017-11-29 17:22:45 +01:00
parent 3d9742891c
commit 50f9fe5f65
3 changed files with 20 additions and 5 deletions

View File

@@ -17,7 +17,9 @@ public class FileChecker {
if (extIndex >= 0) {
extension = filename.substring(extIndex).toLowerCase();
isPDF=extension.equals(".pdf");// alternative check for PDF: File starts with %PDF-
thisRun.incPDFCount();
if (isPDF) {
thisRun.incPDFCount();
}
}
} else {

View File

@@ -378,7 +378,7 @@ public class Toecount {
try {
xmlName = getFilenameFromUser("ZUGFeRD 1.0 XML source", "ZUGFeRD-invoice.xml", "xml", true, false);
outName = getFilenameFromUser("ZUGFeRD 2.0 XML target", "ZUGFeRD-2-invoice.xml", "xml", false, true);
outName = getFilenameFromUser("ZUGFeRD 2.0 XML target", "factur-x.xml", "xml", false, true);
ZUGFeRDMigrator zmi = new ZUGFeRDMigrator();
String xml = zmi.migrateFromV1ToV2(xmlName);