Index: AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler.cls.xml =================================================================== diff -u -r49182 -r59584 --- AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler.cls.xml (.../ConversieBezwarenBepaler.cls.xml) (revision 49182) +++ AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler.cls.xml (.../ConversieBezwarenBepaler.cls.xml) (revision 59584) @@ -78,13 +78,7 @@ #dim LeverancierId as %String = "" if (..CurrentLegalEntity = "hlx") && $Length(JournalEntryLine.CustVendAccount){ - try { ;exception indien geen gekende hlx leverancier - Set LeverancierId = ##class(AXimpl.AxToAdminUtils).ConvertSupplierIDHLX(JournalEntryLine.CustVendAccount) - } catch { - #dim Exception As TECH.Exceptions.Exception = ##class(TECH.ExceptionHandler).Catch(##class(TECH.Exceptions.InvalidInputException).%ClassName(1)) - Set LeverancierId = "" - Do ..VoegToeBezwaar("Leverancier met SupplierID '" _ JournalEntryLine.CustVendAccount _ "' niet gekend voor Halux.") - } + Set LeverancierId = ##class(AXimpl.AxToAdminUtils).ConvertSupplierIDHLX(JournalEntryLine.CustVendAccount) } else { Set:$Length(JournalEntryLine.CustVendAccount) LeverancierId = ##class(AXimpl.AxToAdminUtils).ConvertSupplierID(JournalEntryLine.CustVendAccount) } Index: AXimpl/AxToAdminUtils.cls.xml =================================================================== diff -u -r59570 -r59584 --- AXimpl/AxToAdminUtils.cls.xml (.../AxToAdminUtils.cls.xml) (revision 59570) +++ AXimpl/AxToAdminUtils.cls.xml (.../AxToAdminUtils.cls.xml) (revision 59584) @@ -77,7 +77,8 @@ ; opgelet! geen sync van supplierid en leverancierid. ; voor legale entiteit hlx is dit misschien gelijk, maar wsl niet ; voor legale entiteit VH is SupplierId = "0" _ LeverancierNr - + + Quit:SupplierId="" "" Quit:SupplierId="06347" "L||5026" Quit:SupplierId="05645" "L||5817" Quit:SupplierId="05669" "L||5830" @@ -129,12 +130,7 @@ Quit:SupplierId="06773" "L||8924" Quit:SupplierId="06787" "L||6675" - If ($$$HasLength(SupplierId)) { - Quit "L||"_+SupplierId // Default afhandeling, toepasbaar op alle nieuw aangemaakte leveranciers. - } Else { - Do ##class(vhLib.Logger).%New().ErrorMail("AXToAdminUtils","Nieuwe leverancier met id '"_SupplierId_"' gedefinieerd in AX Halux, die nog niet voorzien is in ConvertSupplierIDHLX") - Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.InvalidInputException).%New("Nieuwe leverancier met id '"_SupplierId_"' gedefinieerd in AX Halux, die nog niet voorzien is in Admin Conversiecode.")) - } + Quit "L||"_+SupplierId ]]> Index: vhUnitTest/AXimpl/AxToAdminUtils/Test.cls.xml =================================================================== diff -u -r59570 -r59584 --- vhUnitTest/AXimpl/AxToAdminUtils/Test.cls.xml (.../Test.cls.xml) (revision 59570) +++ vhUnitTest/AXimpl/AxToAdminUtils/Test.cls.xml (.../Test.cls.xml) (revision 59584) @@ -63,16 +63,15 @@ ]]> - + Index: vhTest/Mock/AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler.cls.xml =================================================================== diff -u -r47950 -r59584 --- vhTest/Mock/AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler.cls.xml (.../ConversieBezwarenBepaler.cls.xml) (revision 47950) +++ vhTest/Mock/AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler.cls.xml (.../ConversieBezwarenBepaler.cls.xml) (revision 59584) @@ -8,6 +8,13 @@ AXimpl.Dynamics.InventoryIn.Converter.ConversieBezwarenBepaler,Tools.Mock.MockClassBase right + +ProductLookup:AXimpl.Admin.Common.ProductBepaler,AankoopAPI:DOM.AKP.AankoopAPI,ProductTypeAPI:DOM.PM.ProductTypeAPI,ReceptieService:APPS.AKP.Receptie.impl.ReceptieService +%Status + + + Bericht:AXif.Dynamics.InventoryIn.MessageParts.AxdADUMsgWMSJournalOut %ListOfDataTypes Index: vhUnitTest/AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler/Test.cls.xml =================================================================== diff -u -r49182 -r59584 --- vhUnitTest/AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler/Test.cls.xml (.../Test.cls.xml) (revision 49182) +++ vhUnitTest/AXimpl/Dynamics/InventoryIn/Converter/ConversieBezwarenBepaler/Test.cls.xml (.../Test.cls.xml) (revision 59584) @@ -159,20 +159,6 @@ ]]> - - - -