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:
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user