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)
+ }
}
]]>