Hi
I have below code . I want those records which have +ve adjustment but consumption type should not be Export And Import. It is summing those records also which have Export & Import.
ILE[9].SETFILTER(ILE[9]."Entry Type",'%1',ILE[9]."Entry Type"::"Positive Adjmt.");
ILE[9].SETFILTER(ILE[9]."Consumption Type",'<>%1|<>%2',ILE[9]."Consumption Type"::Export,ILE[9]."Consumption Type"::Import);
IF ILE[9].FINDFIRST THEN REPEAT
Qty[9] += ILE[9].Quantity;
UNTIL ILE[9].NEXT=0;
Thanks
*This post is locked for comments
It should probably be '&' instead of '|'
ILE[9].SETFILTER(ILE[9]."Consumption Type",'<>%1&<>%2',ILE[9]."Consumption Type"::Export,ILE[9]."Consumption Type"::Import);
Robertas
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156