Index: vhUnitTest/AX/Uitgaand/VKP/VanHoeckeKlant/impl/AifConverter.cls.xml
===================================================================
diff -u -r34299 -r34367
--- vhUnitTest/AX/Uitgaand/VKP/VanHoeckeKlant/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34299)
+++ vhUnitTest/AX/Uitgaand/VKP/VanHoeckeKlant/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34367)
@@ -890,7 +890,7 @@
#dim PostalAddresEcht As AXaif.Customer.AxdEntityDirPartyPostalAddressView = Party.DirPartyPostalAddressView.GetAt(2)
do $$$AssertEquals(PostalAddresFictief.IsPrimary,"Yes")
- do $$$AssertEquals(PostalAddresFictief.CountryRegionId,"NL")
+ do $$$AssertEquals(PostalAddresFictief.CountryRegionId,"NLD")
do $$$AssertEquals(PostalAddresFictief.Roles,"Business")
do $$$AssertEquals(PostalAddresFictief.LocationName,"Een Willekeurige naam Toenaam")
do $$$AssertEquals(PostalAddresEcht.IsPrimary,"No")
@@ -914,6 +914,60 @@
do $$$AssertEquals(PostalAddres.IsPrimary,"Yes")
]]>
+
+
+
+
+
+
+
+
+
+
+
+
Index: AX/Uitgaand/VKP/VanHoeckeKlant/impl/AifConverter.cls.xml
===================================================================
diff -u -r34334 -r34367
--- AX/Uitgaand/VKP/VanHoeckeKlant/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34334)
+++ AX/Uitgaand/VKP/VanHoeckeKlant/impl/AifConverter.cls.xml (.../AifConverter.cls.xml) (revision 34367)
@@ -158,14 +158,14 @@
set PostalAddres.ZipCode = ##class(DOM.common.impl.AdresUtils).CorrigeerPostcode(Adres.GeefPostcode(),Adres.GeefLandNr())
set PostalAddres.LocationName = DirParty.Name
- If ..IsLandCodeInAdresGelijkAanLandInBTWnummer(Partij) {
+ If ..IsLandCodeInAdresGelijkAanLandInBTWnummer(Partij) || ($Find($ListBuild("GEEN","G",""),Partij.GeefBTWNr())) {
Do DirParty.DirPartyPostalAddressView.Insert(PostalAddres)
} Else {
#dim FictiefPostalAddres As AXaif.Customer.AxdEntityDirPartyPostalAddressView
Set FictiefPostalAddres = ##class(AXaif.Customer.AxdEntityDirPartyPostalAddressView).%New()
- Set FictiefPostalAddres.IsPrimary = ##class(AXaif.Shared.AxdExtTypeLogisticsIsPrimaryAddress).Yes()
- Set FictiefPostalAddres.CountryRegionId = $Extract(Partij.GeefBTWNr(),1,2)
+ Set FictiefPostalAddres.IsPrimary = ##class(AXaif.Shared.AxdExtTypeLogisticsIsPrimaryAddress).Yes()
+ Set FictiefPostalAddres.CountryRegionId = ..Formatter.FormatLandCode2naar3($Extract(Partij.GeefBTWNr(),1,2))
Set FictiefPostalAddres.Roles = "Business"
Set FictiefPostalAddres.LocationName = DirParty.Name
Set PostalAddres.LocationName = DirParty.Name
Index: AX/common/impl/Formatter.cls.xml
===================================================================
diff -u -r34334 -r34367
--- AX/common/impl/Formatter.cls.xml (.../Formatter.cls.xml) (revision 34334)
+++ AX/common/impl/Formatter.cls.xml (.../Formatter.cls.xml) (revision 34367)
@@ -85,6 +85,27 @@
quit $extract(BTWNr,3,*)
]]>
+
+
+LandCodeIn:%String
+%String
+
+