From 264cd1d079bff184c05e7d70d65a67a1e09dfcee Mon Sep 17 00:00:00 2001 From: Hamid Date: Fri, 15 Mar 2024 16:29:11 +0100 Subject: [PATCH] Adding formatPackage to FromPruefidentifikator --- EDILibrary/EdiJsonMapper.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/EDILibrary/EdiJsonMapper.cs b/EDILibrary/EdiJsonMapper.cs index 713502a..e5c9cab 100644 --- a/EDILibrary/EdiJsonMapper.cs +++ b/EDILibrary/EdiJsonMapper.cs @@ -131,7 +131,7 @@ public async Task CreateFromJson(string jsonInput, string pid, string fo } public string CreateFromJsonWithTemplates(string jsonInput, string pid, EdifactFormatVersion formatPackage, string ediJsonTemplate, string createTemplate, TimeZoneInfo localTime, MAUS.Anwendungshandbuch? ahb, bool convertFromUTC = false) { - var format = EdifactFormatHelper.FromPruefidentifikator(pid, false); + var format = EdifactFormatHelper.FromPruefidentifikator(pid, false, formatPackage); var mappingsBody = ediJsonTemplate; @@ -150,7 +150,7 @@ public string CreateFromJsonWithTemplates(string jsonInput, string pid, EdifactF } public async Task CreateFromJson(string jsonInput, string pid, EdifactFormatVersion formatPackage, TimeZoneInfo localTime, MAUS.Anwendungshandbuch? ahb, bool convertFromUTC = false) { - var format = EdifactFormatHelper.FromPruefidentifikator(pid, false); + var format = EdifactFormatHelper.FromPruefidentifikator(pid, false, formatPackage); string jsonBody = null; try { @@ -214,7 +214,7 @@ public async Task CreateFromJson(string jsonInput, string pid, EdifactFo } public async Task CreateFromEdiJson(string jsonInput, string pid, EdifactFormatVersion formatPackage, TimeZoneInfo localTime, bool convertFromUTC = false) { - var format = EdifactFormatHelper.FromPruefidentifikator(pid, false); + var format = EdifactFormatHelper.FromPruefidentifikator(pid, false, formatPackage); var mappingsBody = await _loader.LoadJSONTemplate(format, formatPackage.ToLegacyVersionString(), format + ".json");