Skip to content

Commit

Permalink
Adding new versions for FV2404 (#141)
Browse files Browse the repository at this point in the history
* adding new versions for FV2404

* adding PARTIN
  • Loading branch information
hamidhajiparvaneh authored Jan 25, 2024
1 parent 1b680d2 commit 963ac6d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions EDILibrary/EdifactFormatVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -438,18 +438,21 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.UTILMDS => version switch
{
"S1.1a" => EdifactFormatVersion.FV2404,
"S1.1" => EdifactFormatVersion.FV2310,
_ => GetCurrent()
},
EdifactFormat.MSCONS => version switch
{
"2.4c" => EdifactFormatVersion.FV2404,
"2.4b" => EdifactFormatVersion.FV2310,
"2.4a" => EdifactFormatVersion.FV2210,
"2.3c" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
},
EdifactFormat.PARTIN => version switch
{
"1.0d" => EdifactFormatVersion.FV2404,
"1.0c" => EdifactFormatVersion.FV2310,
"1.0a" => EdifactFormatVersion.FV2210,
_ => GetCurrent()
Expand All @@ -469,6 +472,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.COMDIS => version switch
{
"1.0d" => EdifactFormatVersion.FV2404,
"1.0c" => EdifactFormatVersion.FV2310,
"1.0b" => EdifactFormatVersion.FV2210,
"1.0a" => EdifactFormatVersion.FV2110,
Expand All @@ -488,6 +492,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.INVOIC => version switch
{
"2.8c" => EdifactFormatVersion.FV2404,
"2.8b" => EdifactFormatVersion.FV2310,
"2.8a" => EdifactFormatVersion.FV2304,
"2.8" => EdifactFormatVersion.FV2210,
Expand Down Expand Up @@ -533,6 +538,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.REMADV => version switch
{
"2.9c" => EdifactFormatVersion.FV2404,
"2.9b" => EdifactFormatVersion.FV2310,
"2.9a" => EdifactFormatVersion.FV2304,
"2.9" => EdifactFormatVersion.FV2210,
Expand All @@ -548,6 +554,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.UTILTS => version switch
{
"1.1c" => EdifactFormatVersion.FV2404,
"1.1b" => EdifactFormatVersion.FV2310,
"1.1a" => EdifactFormatVersion.FV2210,
"1.0a" => EdifactFormatVersion.FV2110,
Expand Down

0 comments on commit 963ac6d

Please sign in to comment.