I need to make some items inactive and would like to do it via an sql query. I have items that relates to each other with the Itemlookupcode for example of 20-1234 and 20-1234LG (which is a fixed length of item 20-1234). So I want to make sure both items equal 0 before making them, both inactive. Since someone my buy the item 20-1234LG and ask us the order more - so we would need the item 20-1234 as active.
Logic ( I hope this make sense:
Loop
If ItemLookupcode where Quantity = 0 AND
itemlookupcode+LG as ILCLG where Quantity = 0
Set inactive both Itemlookupcode and ILCLG
Any help would be appreciated.
Dan
*This post is locked for comments