From 31f1b62d035fffe9bcd48880928c310a575a1ad0 Mon Sep 17 00:00:00 2001 From: Koen Metsu Date: Wed, 14 Aug 2024 11:00:32 +0200 Subject: [PATCH] fix: or-1394 use beschrijving field instead of code --- .../Infrastructure/Magda/MagdaOrganisationResponse.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs b/src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs index 5d5158082..f125fd8fb 100644 --- a/src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs +++ b/src/OrganisationRegistry.Api/Infrastructure/Magda/MagdaOrganisationResponse.cs @@ -70,7 +70,7 @@ public MagdaOrganisationResponse(Onderneming2_0Type? onderneming, IDateTimeProvi if (onderneming?.Stopzetting != null) Termination = new MagdaTermination(onderneming.Stopzetting); - LegalEntityType = new MagdaLegalEntityType(onderneming?.SoortOnderneming.Code.Value, onderneming?.SoortOnderneming.Omschrijving.Value); + LegalEntityType = new MagdaLegalEntityType(onderneming?.SoortOnderneming.Code.Value, onderneming?.SoortOnderneming.Code.Beschrijving); } private static bool OverlapsWithToday(RechtsvormExtentieType type, DateTime today)