Index: AX/Uitgaand/VKP/KlantAdres/impl/KlantAdresIterator.cls.xml =================================================================== diff -u -r47696 -r47740 --- AX/Uitgaand/VKP/KlantAdres/impl/KlantAdresIterator.cls.xml (.../KlantAdresIterator.cls.xml) (revision 47696) +++ AX/Uitgaand/VKP/KlantAdres/impl/KlantAdresIterator.cls.xml (.../KlantAdresIterator.cls.xml) (revision 47740) @@ -3,111 +3,47 @@ TECH.RegisteredObject,TECH.Iterator - -AXimpl.Crm.CustomerAddressOut.Converter.LeveradresRepository + +TECH.CombinedIterator 1 - -AX.Uitgaand.VKP.KlantAdres.impl.KlantAdres -1 - - - -DOM.VKP.VanHoeckeKlant -1 - - - -TECH.Iterator -1 - - - -TECH.GlobalIndexIterator -1 - - AX.Uitgaand.VKP.KlantAdres.impl.KlantAdresDixfConverter 1 - -DOM.VKP.VerkoopAPI -1 - - - -%Boolean -0 -1 - - -VerkoopAPI:DOM.VKP.VerkoopAPI,LeveradresRepository:AXimpl.Crm.CustomerAddressOut.Converter.LeveradresRepository +VerkoopAPI:DOM.VKP.VerkoopAPI 1 1 %Status 1 %Boolean - 0) { - Set HeeftVolgendeKlant = $$$True - Set ..IsBezoekAdres = $$$False - - Set ..Klant = ..KlantIterator.Next() - Set ..AdresObject = ##class(AX.Uitgaand.VKP.KlantAdres.impl.KlantAdres).%New() - Set ..AdresObject.Klant = ..Klant - Set ..AdresObject.Adres = ..Klant.GeefAdres() - Set ..AdresObject.Type = "Business" - - If $IsObject(..Klant.GeefBezoekAdres()) { - Set ..IsBezoekAdres = $$$False // $$$True - } - } ElseIf (..GlobalIterator.HasNext() > 0) { - Set VolgendAdres = $$$True - - #dim Continue As %Boolean = $$$True - While Continue { - #dim NextUniekId As %String = ..GlobalIterator.Next() - #dim KlantId As %String = $Piece(##class(TECH.ListUtils).ListbuildToPieces(^KKL.AdresI("KlantId_AdresVolgNr",NextUniekId),","),",",1) - Set ..Klant = ..VerkoopAPI.GeefKlant(KlantId) - Set ..AdresObject.Klant = ..Klant - Set ..AdresObject.Adres = ..LeveradresRepository.GeefViaID(NextUniekId) - Set ..AdresObject.Type = $$$If(..AdresObject.Adres.GeefType()="B","Real location","Delivery") - Set Continue = (..Klant.GeefRegio() = 98) || (..Klant.GeefRegio() = 99) - } - } - - Quit (HeeftVolgendeKlant || VolgendAdres) + AXdixf.KlantAdres.KlantAdres Index: AX/Uitgaand/VKP/KlantAdres/impl/KlantAdresDixfConverter.cls.xml =================================================================== diff -u -r47693 -r47740 --- AX/Uitgaand/VKP/KlantAdres/impl/KlantAdresDixfConverter.cls.xml (.../KlantAdresDixfConverter.cls.xml) (revision 47693) +++ AX/Uitgaand/VKP/KlantAdres/impl/KlantAdresDixfConverter.cls.xml (.../KlantAdresDixfConverter.cls.xml) (revision 47740) @@ -25,7 +25,7 @@ DOM.common.Adres 0 { Set BezoekAdres = BezoekAdressen.GetAt(1) } @@ -354,7 +354,7 @@ DOM.common.Adres 0 { Set Adres = Adressen.GetAt(1) } @@ -394,20 +394,37 @@ ]]> + +%ListOfObjects +ELEMENTTYPE="DOM.common.Adres" + + + + +TECH.Iterator + + + %ListOfObjects ELEMENTTYPE="DOM.common.Adres" - + AdresType - "L" of "" = LeverAdres Index: AX/Uitgaand/VKP/KlantAdres/impl/AdresIterator.cls.xml =================================================================== diff -u --- AX/Uitgaand/VKP/KlantAdres/impl/AdresIterator.cls.xml (revision 0) +++ AX/Uitgaand/VKP/KlantAdres/impl/AdresIterator.cls.xml (revision 47740) @@ -0,0 +1,42 @@ + + + +TECH.RegisteredObject,TECH.Iterator + + +TECH.Iterator +1 + + + +Klant:DOM.VKP.VanHoeckeKlant +1 +1 +%Status +1 + + + + +%Boolean + + + + +%CacheString + + + + + + + + + +