Debugging some code earlier and came across this little doosie!
I'm not sure what it's intended to do. I can tell you what it is doing. Oh and it's inside a for each loop of around 10000 records.
Code:
if entryitem.generic-flags[4] = no
or warehouseregions.uses-locations = no then do:
find first location no-lock use-index locn-auto no-error.
find prev location no-lock use-index locn-auto no-error.
end.
else do:
find first location no-lock use-index locn-auto-bay no-error.
find prev location no-lock use-index locn-auto-bay no-error.
end.
I'm not sure what it's intended to do. I can tell you what it is doing. Oh and it's inside a for each loop of around 10000 records.