Index: AX/Uitgaand/PM/ExtArtOmschrLev/impl/ExtArtOmschrLevIterator.cls.xml =================================================================== diff -u -r41192 -r41214 --- AX/Uitgaand/PM/ExtArtOmschrLev/impl/ExtArtOmschrLevIterator.cls.xml (.../ExtArtOmschrLevIterator.cls.xml) (revision 41192) +++ AX/Uitgaand/PM/ExtArtOmschrLev/impl/ExtArtOmschrLevIterator.cls.xml (.../ExtArtOmschrLevIterator.cls.xml) (revision 41214) @@ -63,27 +63,44 @@ %Boolean 0 ) + #dim TeOutputtenProductGevonden As %Boolean = 0 + + While($$$Not(TeOutputtenProductGevonden)&&(..ResultSet.Next()>0)) + { + Set ..Product = ##class(AX.Uitgaand.PM.Product.impl.Product).%New(..ResultSet.GetData(1)) + If (..ResultSet.GetData(1) = "") { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.InvalidInputException).%New("Leeg uit Resultset : '"_..ResultSet.GetData(1)_"' .")) + } + If $$$Not($IsObject(..Product.Basis)) { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.InvalidInputException).%New("Product bestaat niet : '"_..ResultSet.GetData(1)_"' .")) + } + Set ..LeverancierNummer = ..Product.Basis.LeverancierNummer + + Do ..BepaalDefaultOrderType() + Do ..BepaalMoetUitgeslotenWorden() + Set TeOutputtenProductGevonden = $$$Not(..MoetUitgeslotenWorden) + } + + Quit TeOutputtenProductGevonden ]]> AXdixf.ExtArtOmschr.ExtArtOmschr @@ -126,9 +143,8 @@ %String 1 %String - -1 -%String - - -