Index: DOM/common/Locatie/impl/LandRepository.cls.xml
===================================================================
diff -u -r35616 -r35618
--- DOM/common/Locatie/impl/LandRepository.cls.xml (.../LandRepository.cls.xml) (revision 35616)
+++ DOM/common/Locatie/impl/LandRepository.cls.xml (.../LandRepository.cls.xml) (revision 35618)
@@ -18,7 +18,9 @@
LandID:%String
%Boolean
-
@@ -39,6 +41,23 @@
+
+
+LandCodeIn:%String
+DOM.common.Land
+
+
Index: AXimpl/AifMessage/Converter/CustomerCreateConverter.cls.xml
===================================================================
diff -u -r35613 -r35618
--- AXimpl/AifMessage/Converter/CustomerCreateConverter.cls.xml (.../CustomerCreateConverter.cls.xml) (revision 35613)
+++ AXimpl/AifMessage/Converter/CustomerCreateConverter.cls.xml (.../CustomerCreateConverter.cls.xml) (revision 35618)
@@ -28,8 +28,8 @@
1
-
-DOM.common.LocatieAPI
+
+DOM.common.Locatie.impl.LandRepository
1
@@ -54,7 +54,7 @@
set ..VerkoopAPI = $$$Inject(VerkoopAPI,##class(DOM.DomeinContext).Instance().GeefVerkoopAPI())
set ..Utils = ##class(AXimpl.AifMessage.Converter.Utils).%New(..FirmaBepaler,..PartijAPI)
- set ..LocatieAPI = ##class(DOM.common.impl.LocatieAPI).%New()
+ set ..LandRepository = ##class(DOM.common.Locatie.impl.LandRepository).%New()
Quit $$$OK
]]>
@@ -205,7 +205,7 @@
Set FictiefPostalAddres = ##class(AXaif.Customer.AxdEntityDirPartyPostalAddressView).%New()
Set FictiefPostalAddres.class = "entity"
Set FictiefPostalAddres.IsPrimary = ##class(AXaif.Customer.AxdExtTypeLogisticsIsPrimaryAddress).Yes()
- Set FictiefPostalAddres.CountryRegionId = ..LocatieAPI.ConvertLandCode2naar3(..LandCodeUitBTWNummer(Partij.GeefBTWNr()))
+ Set FictiefPostalAddres.CountryRegionId = ..LandRepository.GeefViaLandCode2Lang(..LandCodeUitBTWNummer(Partij.GeefBTWNr())).GeefIso3()
Set FictiefPostalAddres.Roles = "Business"
Set FictiefPostalAddres.LocationName = DirParty.Name
Set PostalAddres.LocationName = DirParty.Name
Index: vhUnitTest/DOM/common/Locatie/impl/LandRepository/Test.cls.xml
===================================================================
diff -u -r35616 -r35618
--- vhUnitTest/DOM/common/Locatie/impl/LandRepository/Test.cls.xml (.../Test.cls.xml) (revision 35616)
+++ vhUnitTest/DOM/common/Locatie/impl/LandRepository/Test.cls.xml (.../Test.cls.xml) (revision 35618)
@@ -26,14 +26,27 @@
]]>
+
+
+
+
@@ -64,6 +77,23 @@
Do ..LandRepository.Maak()
]]>
+
+
+
+
+
+
+
+
Index: DOM/common/impl/LocatieAPI.cls.xml
===================================================================
diff -u -r35613 -r35618
--- DOM/common/impl/LocatieAPI.cls.xml (.../LocatieAPI.cls.xml) (revision 35613)
+++ DOM/common/impl/LocatieAPI.cls.xml (.../LocatieAPI.cls.xml) (revision 35618)
@@ -52,23 +52,6 @@
Quit ..GeefLand($$LAND^vhRtn1(LandCode,"I"))
]]>
-
-
-LandCodeIn:%String
-%String
-
-