Index: AXimpl/Dynamics/InventoryOut/Converter/AxInventSyncCreator.cls.xml =================================================================== diff -u -r48797 -r48801 --- AXimpl/Dynamics/InventoryOut/Converter/AxInventSyncCreator.cls.xml (.../AxInventSyncCreator.cls.xml) (revision 48797) +++ AXimpl/Dynamics/InventoryOut/Converter/AxInventSyncCreator.cls.xml (.../AxInventSyncCreator.cls.xml) (revision 48801) @@ -64,6 +64,10 @@ #dim WVStock, FysStock As %String = "0" #dim Product As DOM.PM.Product + If $$$Not(..ProductRepository.BestaatViaID(PRNr)){ + Do ##class(TECH.ExceptionHandler).Throw(##class(AXimpl.NoConversionNeededException).%New(##this.%ClassName(),PRNr)) + } + #dim IsStockOverKinderen As %Boolean = ..IsStockOverKinderenBepaler.IsStockOverKinderen(PRNr) If (($$$Not(IsStockOverKinderen)) && (..StockReservatieRepository.BestaatViaID(PRNr))) { #dim StockProduct As Prod.StockReservatie = ..StockReservatieRepository.GeefViaID(PRNr) @@ -100,9 +104,6 @@ Set InventSyncProduct.SequenceNr = ..SequenceNrGenerator.GeefVolgendProductVoorraadSyncBerichtId() Set InventSyncProduct.SOPRContractId = SoprContractId - //alle qtyies altijd 0 indien linktype S - - Quit InventSyncProduct ]]>