Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

showing only items with a Qty

Status
Not open for further replies.

itguymike

Technical User
May 27, 2005
28
US
I have 1000 products with each one having up to 10 locations for that part.
i am looking to show only parts with a qty that is in either QCHOLD, QUARANTINE or SHORTDATED or where there is no qty (out of stock) in any location for that part. Any ideas how to go about this. started with what is below:


{PART_LOCATION.WAREHOUSE_ID}='XXXXX' AND
{PART.PRODUCT_CODE} like ["XXXXXX","xxxxx","xxxxxxx"]
and {PART_LOCATION.LOCATION_ID}= ['QCHOLD','QUARANTINE','SHORTDATED']

this shows me those locations but some of these locations have no parts in them, rather just show those locations only if they have a qty in them.

hope this makes some sense

mike
 
{PART_LOCATION.WAREHOUSE_ID}='XXXXX' AND
{PART.PRODUCT_CODE} like ["XXXXXX","xxxxx","xxxxxxx"]
and (({PART_LOCATION.LOCATION_ID}= 'QCHOLD' and {table.quantity > 0)
or
({PART_LOCATION.LOCATION_ID}= 'QUARANTINE' and {table.quantity > 0)
or
({PART_LOCATION.LOCATION_ID}='SHORTDATED' and {table.quantity > 0))


 
thank you for getting back to me, looks like it worked perfectly, will check it to make sure, thank you again.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top