Skip to content

Commit

Permalink
Change FV2304 version selector (#90)
Browse files Browse the repository at this point in the history
* Change Versionselector

* dotnet format
  • Loading branch information
TobiasNaethLynqtech authored Feb 3, 2023
1 parent 7b88fb1 commit deeab92
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EDILibrary/EdifactFormatVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.INVOIC => version switch
{
"2.8a" => EdifactFormatVersion.FV2304,
"2.8" => EdifactFormatVersion.FV2210,
"2.7a" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
Expand All @@ -460,18 +461,21 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.ORDERS => version switch
{
"1.2b" => EdifactFormatVersion.FV2304,
"1.2a" => EdifactFormatVersion.FV2210,
"1.1m" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
},
EdifactFormat.ORDRSP => version switch
{
"1.2b" => EdifactFormatVersion.FV2304,
"1.2a" => EdifactFormatVersion.FV2210,
"1.1k" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
},
EdifactFormat.PRICAT => version switch
{
"2.0b" => EdifactFormatVersion.FV2304,
"2.0a" => EdifactFormatVersion.FV2210,
"1.1b" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
Expand All @@ -484,6 +488,7 @@ public EdifactFormatVersion GetFormatVersion(EdifactFormat format, string versio
},
EdifactFormat.REMADV => version switch
{
"2.9a" => EdifactFormatVersion.FV2304,
"2.9" => EdifactFormatVersion.FV2210,
"2.8" => EdifactFormatVersion.FV2110,
_ => GetCurrent()
Expand Down

0 comments on commit deeab92

Please sign in to comment.