Skip to content

Commit

Permalink
Merge branch 'master' into Update_template_helper
Browse files Browse the repository at this point in the history
  • Loading branch information
hf-fvesely authored Jul 31, 2023
2 parents 79757f0 + 4e97c57 commit f377a03
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions EDILibrary/EdifactFormatVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -469,58 +473,67 @@ 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,
_ => GetCurrent()
},
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,
_ => GetCurrent()
},
EdifactFormat.ORDRSP => version switch
{
"1.3" => EdifactFormatVersion.FV2310,
"1.2b" => EdifactFormatVersion.FV2304,
"1.2a" => EdifactFormatVersion.FV2210,
"1.1k" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
},
EdifactFormat.PRICAT => version switch
{
"2.0c" => EdifactFormatVersion.FV2310,
"2.0b" => EdifactFormatVersion.FV2304,
"2.0a" => EdifactFormatVersion.FV2210,
"1.1b" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
},
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,
_ => GetCurrent()
},
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()
Expand Down

0 comments on commit f377a03

Please sign in to comment.