Index: AXimpl/Dynamics/InventoryIn/Converter/InventoryInConverter.cls.xml =================================================================== diff -u -r47279 -r47598 --- AXimpl/Dynamics/InventoryIn/Converter/InventoryInConverter.cls.xml (.../InventoryInConverter.cls.xml) (revision 47279) +++ AXimpl/Dynamics/InventoryIn/Converter/InventoryInConverter.cls.xml (.../InventoryInConverter.cls.xml) (revision 47598) @@ -51,6 +51,11 @@ 1 + +%String +1 + + ToeleveringAPI:DOM.AKP.ToeleveringAPI,ProductLookup:AXimpl.Admin.Common.ProductBepaler,ReceptieService:APPS.AKP.Receptie.impl.ReceptieService,InventoryOutConverter:AXimpl.Dynamics.InventoryOut.Converter.InventoryOutConverter,ProductRepository:Prod.ProductRepository 1 @@ -90,6 +95,7 @@ Set JournalTableIterator = ##class(TECH.ListIterator).%New(WMSJournalOutRequest.JournalTable) While JournalTableIterator.HasNext() { #dim JournalEntry as AXif.Dynamics.InventoryIn.MessageParts.AxdEntityJournalTable = JournalTableIterator.Next() + Set ..CurrentLegalEntity = JournalEntry.LegalEntityId Set JournalLineIterator = ##class(TECH.ListIterator).%New(JournalEntry.JournalTrans) While JournalLineIterator.HasNext() { #dim JournalEntryLine as AXif.Dynamics.InventoryIn.MessageParts.AxdEntityJournalTrans = JournalLineIterator.Next() @@ -156,7 +162,11 @@ if JournalEntryLine.InventTransType = "Sales" { Quit "L||6051" ;Van Hoecke voor terugnames } else { - Quit ##class(AXimpl.AxToAdminUtils).ConvertSupplierID(JournalEntryLine.CustVendAccount) + if ..CurrentLegalEntity = "vhbe" { + Quit ##class(AXimpl.AxToAdminUtils).ConvertSupplierID(JournalEntryLine.CustVendAccount) + } else { + Quit ##class(AXimpl.AxToAdminUtils).ConvertSupplierIDHLX(JournalEntryLine.CustVendAccount) + } } ]]> Index: AXimpl/AxToAdminUtils.cls.xml =================================================================== diff -u -r47255 -r47598 --- AXimpl/AxToAdminUtils.cls.xml (.../AxToAdminUtils.cls.xml) (revision 47255) +++ AXimpl/AxToAdminUtils.cls.xml (.../AxToAdminUtils.cls.xml) (revision 47598) @@ -16,6 +16,9 @@ SupplierId:%String %String + +1 +SupplierId:%String +%String + + + 1 ZuluTimeStampStringFormaat:%TimeStamp Index: vhTestFiles/UnitTests/AXimpl.Dynamics.InventoryIn.Converter.InventoryInConverter/TestHalux/TestConvertersmijtexceptieindiennognietgekendeleveranciervoorhalux/Journaal.xml =================================================================== diff -u --- vhTestFiles/UnitTests/AXimpl.Dynamics.InventoryIn.Converter.InventoryInConverter/TestHalux/TestConvertersmijtexceptieindiennognietgekendeleveranciervoorhalux/Journaal.xml (revision 0) +++ vhTestFiles/UnitTests/AXimpl.Dynamics.InventoryIn.Converter.InventoryInConverter/TestHalux/TestConvertersmijtexceptieindiennognietgekendeleveranciervoorhalux/Journaal.xml (revision 47598) @@ -0,0 +1,14 @@ + + + JournalId + hlx + + 01234 + Purch + Identnummer + 1 + 25 + + + + Index: vhUnitTest/AXimpl/Dynamics/InventoryIn/Converter/InventoryInConverter/TestHalux.cls.xml =================================================================== diff -u -r47376 -r47598 --- vhUnitTest/AXimpl/Dynamics/InventoryIn/Converter/InventoryInConverter/TestHalux.cls.xml (.../TestHalux.cls.xml) (revision 47376) +++ vhUnitTest/AXimpl/Dynamics/InventoryIn/Converter/InventoryInConverter/TestHalux.cls.xml (.../TestHalux.cls.xml) (revision 47598) @@ -15,15 +15,15 @@ + + + + 1 AXif.Dynamics.InventoryIn.MessageParts.AxdADUMsgWMSJournalOut Index: vhTestFiles/UnitTests/AXimpl.Dynamics.InventoryIn.Converter.InventoryInConverter/TestHalux/TeststandaardgedragHaluxmaakttoeleveringenGEENreceptieaanengeefteeninventsyncberichtterug/Journaal.xml =================================================================== diff -u -r46016 -r47598 --- vhTestFiles/UnitTests/AXimpl.Dynamics.InventoryIn.Converter.InventoryInConverter/TestHalux/TeststandaardgedragHaluxmaakttoeleveringenGEENreceptieaanengeefteeninventsyncberichtterug/Journaal.xml (.../Journaal.xml) (revision 46016) +++ vhTestFiles/UnitTests/AXimpl.Dynamics.InventoryIn.Converter.InventoryInConverter/TestHalux/TeststandaardgedragHaluxmaakttoeleveringenGEENreceptieaanengeefteeninventsyncberichtterug/Journaal.xml (.../Journaal.xml) (revision 47598) @@ -3,7 +3,7 @@ JournalId hlx - 1234 + 05677 Purch Identnummer 1