Index: AX/Uitgaand/PM/BehoeftePlanning/impl/JaarAfnameIterator.cls.xml =================================================================== diff -u -r45576 -r45604 --- AX/Uitgaand/PM/BehoeftePlanning/impl/JaarAfnameIterator.cls.xml (.../JaarAfnameIterator.cls.xml) (revision 45576) +++ AX/Uitgaand/PM/BehoeftePlanning/impl/JaarAfnameIterator.cls.xml (.../JaarAfnameIterator.cls.xml) (revision 45604) @@ -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 (isnull(LinkType,'') <> 'S' OR (isnull(LinkType,'')='') AND LeverancierNummer NOT LIKE '6332' AND (isnull(NonAktief,0)=0 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 left(LinkType,2)='HH' AND (isnull(NonAktief,0)=0 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/BehoeftePlanningIterator.cls.xml =================================================================== diff -u -r45576 -r45604 --- AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIterator.cls.xml (.../BehoeftePlanningIterator.cls.xml) (revision 45576) +++ AX/Uitgaand/PM/BehoeftePlanning/impl/BehoeftePlanningIterator.cls.xml (.../BehoeftePlanningIterator.cls.xml) (revision 45604) @@ -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 (isnull(LinkType,'') <> 'S' OR (isnull(LinkType,'')='') AND LeverancierNummer NOT LIKE '6332' AND (isnull(NonAktief,0)=0 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 left(LinkType,2)='HH' AND (isnull(NonAktief,0)=0 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 {