From 4e97c57c52c4c3724b302a325d60932007e27b6c Mon Sep 17 00:00:00 2001 From: Franziska <73471037+hf-fvesely@users.noreply.github.com> Date: Mon, 31 Jul 2023 11:33:55 +0200 Subject: [PATCH] DEV-29704: Add small formats to formatversion switch for FV2310 (#114) --- EDILibrary/EdifactFormatVersion.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/EDILibrary/EdifactFormatVersion.cs b/EDILibrary/EdifactFormatVersion.cs index af798e2..5c5c7fa 100644 --- a/EDILibrary/EdifactFormatVersion.cs +++ b/EDILibrary/EdifactFormatVersion.cs @@ -428,17 +428,20 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.MSCONS => version switch { + "2.4b" => EdifactFormatVersion.FV2310, "2.4a" => EdifactFormatVersion.FV2210, "2.3c" => EdifactFormatVersion.FV2110, _ => GetCurrent() }, EdifactFormat.PARTIN => version switch { + "1.0c" => EdifactFormatVersion.FV2310, "1.0a" => EdifactFormatVersion.FV2210, _ => GetCurrent() }, EdifactFormat.IFTSTA => version switch { + "2.0e" => EdifactFormatVersion.FV2310, "2.0d" => EdifactFormatVersion.FV2210, "2.0c" => EdifactFormatVersion.FV2110, _ => GetCurrent() @@ -451,6 +454,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.COMDIS => version switch { + "1.0c" => EdifactFormatVersion.FV2310, "1.0b" => EdifactFormatVersion.FV2210, "1.0a" => EdifactFormatVersion.FV2110, _ => GetCurrent() @@ -469,6 +473,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.INVOIC => version switch { + "2.8b" => EdifactFormatVersion.FV2310, "2.8a" => EdifactFormatVersion.FV2304, "2.8" => EdifactFormatVersion.FV2210, "2.7a" => EdifactFormatVersion.FV2110, @@ -476,11 +481,13 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.ORDCHG => version switch { + "1.1" => EdifactFormatVersion.FV2310, "1.0" => EdifactFormatVersion.FV2210, _ => GetCurrent() }, EdifactFormat.ORDERS => version switch { + "1.3" => EdifactFormatVersion.FV2310, "1.2b" => EdifactFormatVersion.FV2304, "1.2a" => EdifactFormatVersion.FV2210, "1.1m" => EdifactFormatVersion.FV2110, @@ -488,6 +495,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.ORDRSP => version switch { + "1.3" => EdifactFormatVersion.FV2310, "1.2b" => EdifactFormatVersion.FV2304, "1.2a" => EdifactFormatVersion.FV2210, "1.1k" => EdifactFormatVersion.FV2110, @@ -495,6 +503,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.PRICAT => version switch { + "2.0c" => EdifactFormatVersion.FV2310, "2.0b" => EdifactFormatVersion.FV2304, "2.0a" => EdifactFormatVersion.FV2210, "1.1b" => EdifactFormatVersion.FV2110, @@ -502,12 +511,14 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.QUOTES => version switch { + "1.3" => EdifactFormatVersion.FV2310, "1.2" => EdifactFormatVersion.FV2210, "1.1b" => EdifactFormatVersion.FV2110, _ => GetCurrent() }, EdifactFormat.REMADV => version switch { + "2.9b" => EdifactFormatVersion.FV2310, "2.9a" => EdifactFormatVersion.FV2304, "2.9" => EdifactFormatVersion.FV2210, "2.8" => EdifactFormatVersion.FV2110, @@ -515,12 +526,14 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio }, EdifactFormat.REQOTE => version switch { + "1.3" => EdifactFormatVersion.FV2310, "1.2" => EdifactFormatVersion.FV2210, "1.1d" => EdifactFormatVersion.FV2110, _ => GetCurrent() }, EdifactFormat.UTILTS => version switch { + "1.1b" => EdifactFormatVersion.FV2310, "1.1a" => EdifactFormatVersion.FV2210, "1.0a" => EdifactFormatVersion.FV2110, _ => GetCurrent()