Skip to content

Commit

Permalink
fixed acticvity.reference
Browse files Browse the repository at this point in the history
  • Loading branch information
erlendoksvoll committed Feb 29, 2024
1 parent f7acf29 commit fc47b16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Altinn.Dan.Plugin.Nsg/NSGv1.0.cs
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private async Task<RegisteredInformationResponse> GetFromNorway(string organizat
code = unit.Naeringskode1.Kode.Replace(".", "").Substring(0, 4),
sequence = 1,
inClassification = "http://data.europa.eu/ux2/nace2/nace2",
reference = "http://data.europa.eu/ux2/nace2/5020",
reference = $"http://data.europa.eu/ux2/nace2/{unit.Naeringskode1.Kode.Replace(".", "").Substring(0, 4)}",
});

if (unit.Naeringskode2 != null)
Expand All @@ -168,7 +168,7 @@ private async Task<RegisteredInformationResponse> GetFromNorway(string organizat
code = unit.Naeringskode2.Kode.Replace(".", "").Substring(0, 4),
sequence = 2,
inClassification = "http://data.europa.eu/ux2/nace2/nace2",
reference = "http://data.europa.eu/ux2/nace2/5020",
reference = $"http://data.europa.eu/ux2/nace2/{unit.Naeringskode2.Kode.Replace(".", "").Substring(0, 4)}",
});

if (unit.Naeringskode3 != null)
Expand All @@ -178,7 +178,7 @@ private async Task<RegisteredInformationResponse> GetFromNorway(string organizat
code = unit.Naeringskode3.Kode.Replace(".", "").Substring(0, 4),
sequence = 3,
inClassification = "http://data.europa.eu/ux2/nace2/nace2",
reference = "http://data.europa.eu/ux2/nace2/5020",
reference = $"http://data.europa.eu/ux2/nace2/{unit.Naeringskode3.Kode.Replace(".", "").Substring(0, 4)}",
});

response.identifier = new Identifier()
Expand Down

0 comments on commit fc47b16

Please sign in to comment.