From f4affe5c52e6862e480f75b4cfb1b1dc80c07453 Mon Sep 17 00:00:00 2001 From: jstaerk Date: Tue, 23 Mar 2021 20:27:12 +0100 Subject: [PATCH] closes #230 --- History.md | 1 + .../src/main/java/org/mustangproject/commandline/Main.java | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/History.md b/History.md index 7492cdab..3744cd4b 100644 --- a/History.md +++ b/History.md @@ -1,5 +1,6 @@ - PR #225 exemption reasons only for certain tax category codes thanks to weclapp-dev - allow 1.2 and 2.0 in RDF versions for XRechnung 2.0 Referenzprofil +- also use shortcut "t" for extended in zf1 #230 2.1.1 ======= diff --git a/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java b/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java index 7216dbdd..1e496dde 100755 --- a/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java +++ b/Mustang-CLI/src/main/java/org/mustangproject/commandline/Main.java @@ -586,7 +586,7 @@ public class Main { if (zfProfile == null) { try { if (format.equals("zf") && (zfIntVersion == 1)) { - zfProfile = getStringFromUser("Profile b)asic, c)omfort or e)xtended", "e", "B|b|C|c|E|e"); + zfProfile = getStringFromUser("Profile (b)asic, (c)omfort or ex(t)ended", "t", "B|b|C|c|T|t"); } else { zfProfile = getStringFromUser( "Profile [M]INIMUM, BASIC [W]L, [B]ASIC,\n" + "[C]IUS, [E]N16931, EX[T]ENDED or [X]RECHNUNG", "E", @@ -614,7 +614,7 @@ public class Main { zfConformanceLevelProfile = Profiles.getByName("BASIC", zfIntVersion); } else if (zfProfile.equals("c")) { zfConformanceLevelProfile = Profiles.getByName("COMFORT", zfIntVersion); - } else if (zfProfile.equals("e")) { + } else if (zfProfile.equals("t")) { zfConformanceLevelProfile = Profiles.getByName("EXTENDED", zfIntVersion); } else { throw new Exception(String.format("Unknown ZUGFeRD profile '%s'", zfProfile));