Index: AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIterator.cls.xml =================================================================== diff -u -r43163 -r45576 --- AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIterator.cls.xml (.../BehoeftePlanningIterator.cls.xml) (revision 43163) +++ AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIterator.cls.xml (.../BehoeftePlanningIterator.cls.xml) (revision 45576) @@ -56,13 +56,13 @@ If ..Vestiging = ##class(AXimpl.InterneFirmaInitialen).VanHoeckeNv() { Set SqlStatement = "SELECT ID FROM Prod.Product WHERE isnull(Gentype,'')='' AND KortTekst NOT LIKE 'GEN%' AND KortTekst NOT LIKE 'IO%' AND StockNietStock = '1'" - _" AND (LinkType NOT LIKE 'S' OR LinkType IS null) AND LeverancierNummer NOT LIKE '6332' AND (NonAktief IS null OR NonAktief = '2')" + _" AND (isnull(LinkType,'') <> 'S' OR (isnull(LinkType,'')='') AND LeverancierNummer NOT LIKE '6332' AND (isnull(NonAktief,0)=0 OR NonAktief = '2')" // Indien nodig is hieronder een filter voorzien om het resultaat te beperken tot overzichtelijk, voor debugging: /*_" AND ID IN (34716,100434,200582,254237,353739,371127,379316,446650,534374,568105,568123,670483,683737,683793,701496,701513,754875)"*/ } Else { If ..Vestiging = ##class(AXimpl.InterneFirmaInitialen).HaluxNv() { - Set SqlStatement = "SELECT ID FROM Prod.Product WHERE isnull(Gentype,'')='' AND KortTekst NOT LIKE 'GEN%' AND KortTekst NOT LIKE 'IO%' AND StockNietStock = '1'" - _" AND LeverancierNummer NOT LIKE '6051' AND (NonAktief IS null OR NonAktief = '2')" + Set SqlStatement = "SELECT ID FROM Prod.Product WHERE isnull(Gentype,'')='' AND KortTekst NOT LIKE 'GEN%' AND KortTekst NOT LIKE 'IO%' and StockNietStock = 1" + _" AND left(LinkType,2)='HH' AND (isnull(NonAktief,0)=0 OR NonAktief = '2')" // Indien nodig is hieronder een filter voorzien om het resultaat te beperken tot overzichtelijk, voor debugging: /*_" AND ID IN (34716,100434,200582,254237,353739,371127,379316,446650,534374,568105,568123,670483,683737,683793,701496,701513,754875)"*/ }Else { Index: AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIteratorFilter.cls.xml =================================================================== diff -u -r45100 -r45576 --- AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIteratorFilter.cls.xml (.../BehoeftePlanningIteratorFilter.cls.xml) (revision 45100) +++ AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIteratorFilter.cls.xml (.../BehoeftePlanningIteratorFilter.cls.xml) (revision 45576) @@ -58,14 +58,14 @@ Set IsValid = $$$False }} ElseIf ..Vestiging = ##class(AXimpl.InterneFirmaInitialen).HaluxNv() { If (PrimaryVendorId = "05497"){ - Set IsValid = $$$False + Set IsValid = $$$False }} Else { Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.IllegalArgumentException).%New("Geef als parameter ofwel VHBE, ofwel HLX mee! Huidige parameter = '"_..Vestiging)) } If ##class(TECH.StringUtils).Equals(ReqGroupId,"Handmatig","MTO"){ Set IsValid = $$$False - } ElseIf (ProductBehoefte.Basis.Uitverkoop '= ""){ + } ElseIf ("***"'[ProductBehoefte.Basis.Uitverkoop){ Set IsValid = $$$False } Index: AX/Uitgaand/PM/BehoeftePlanning/impl/JaarAfnameIterator.cls.xml =================================================================== diff -u --- AX/Uitgaand/PM/BehoeftePlanning/impl/JaarAfnameIterator.cls.xml (revision 0) +++ AX/Uitgaand/PM/BehoeftePlanning/impl/JaarAfnameIterator.cls.xml (revision 45576) @@ -0,0 +1,93 @@ + + + +TECH.RegisteredObject,TECH.Iterator + + +AXimpl.InterneFirmaInitialen +1 + + + +AX.Uitgaand.PM.BehoeftePlanning.impl.BehoeftePlanningDixfConverter +1 + + + +TECH.Iterator +1 + + + +TECH.Query.QueryAPI +1 + + + +TECH.ResultSet +1 + + + +QueryAPI:TECH.Query.QueryAPI="",Vestiging:AXimpl.InterneFirmaInitialen +1 +1 +%Status +1 + + + + +1 + 'S' OR (isnull(LinkType,'')='') AND LeverancierNummer NOT LIKE '6332' AND (isnull(NonAktief,0)=0 OR NonAktief = '2')" + // Indien nodig is hieronder een filter voorzien om het resultaat te beperken tot overzichtelijk, voor debugging: + /*_" AND ID IN (34716,100434,200582,254237,353739,371127,379316,446650,534374,568105,568123,670483,683737,683793,701496,701513,754875)"*/ + } Else { + If ..Vestiging = ##class(AXimpl.InterneFirmaInitialen).HaluxNv() { + Set SqlStatement = "SELECT ID FROM Prod.Product WHERE isnull(Gentype,'')='' AND KortTekst NOT LIKE 'GEN%' AND KortTekst NOT LIKE 'IO%' and StockNietStock = 1" + _" AND left(LinkType,2)='HH' AND (isnull(NonAktief,0)=0 OR NonAktief = '2')" + // Indien nodig is hieronder een filter voorzien om het resultaat te beperken tot overzichtelijk, voor debugging: + /*_" AND ID IN (34716,100434,200582,254237,353739,371127,379316,446650,534374,568105,568123,670483,683737,683793,701496,701513,754875)"*/ + }Else { + Do ##class(TECH.ExceptionHandler).Throw(##class(TECH.Exceptions.IllegalArgumentException).%New("Geef als parameter ofwel VHBE, ofwel HLX mee! Huidige parameter = '"_..Vestiging_"' <")) + } + } + + Set ..ResultSet = ..QueryAPI.GetResultSet(##class(TECH.DynamicQuery).%New(SqlStatement)) +]]> + + + +%Boolean + + + + +AXdixf.VrijgegProduct.VrijgegProduct + + + + + +