This topic contains 5 replies, has 0 voices, and was last updated by khultquist 7 years, 10 months ago.
-
AuthorPosts
-
January 10, 2017 at 8:37 am #22986
rvasquezI'm trying to create a search that basically shows items that have 0 quantity in one location, but have quantities in another location.
So let's say you wanted to see all the items that have 0 inventory in the showroom but have inventory in the warehouse. If the items is in stock in the showroom, or there are none in the warehouse, don't show it. Someone could then use this list to move things from the warehouse to the showroom.
What I started with is a saved search for items that have (location = showroom AND quantity = 0), OR (location = warehouse AND quantity > 0), using the bin on hand field
That sort of works, but a location can have something in the warehouse and show up on the list even if the showroom has a quantity. And it can show up with the showroom quantity being 0 but the warehouse is also zero (it just doesn't show those lines)
Item: Location: Quantity:
TIRE Warehouse 1
TIRE Showroom 0
WHEEL Warehouse 1
DOOR Showroom 0
In the above results, TIRE is the only one I would want on the list. There are quantities of WHEEL in the showroom (so it doesn't show up on the list) so I don't want to see the warehouse quantities) and there are 0 DOOR in the showroom, but I don't want to see that one as there is nothing in the warehouse.
I tried to use an AND instead of an OR but it doesn't do what I want because an item in a search result only has one location
This is a cached copy. Click here to see the original post. -
January 10, 2017 at 9:14 am #22987
khultquistYou have two criteria, which gives you four permutations:
Warehouse = 0, Showroom = 0
Warehouse > 0, Showroom = 0
Warehouse = 0, Showroom > 0
Warehouse > 0, Showroom > 0
But I have to say I'm a little confused about which one(s) you're looking for, since these are conflicting statements
0 inventory in the showroom but have inventory in the warehouse
(location = showroom AND quantity > 0), OR (location = warehouse AND quantity = 0)
-
January 10, 2017 at 10:35 am #22988
rvasquezOriginally posted by khultquist
View Post
You have two criteria, which gives you four permutations:
Warehouse = 0, Showroom = 0
Warehouse > 0, Showroom = 0
Warehouse = 0, Showroom > 0
Warehouse > 0, Showroom > 0
But I have to say I'm a little confused about which one(s) you're looking for, since these are conflicting statements
Sorry – I had those backwards. It should be
(location = showroom AND quantity = 0), OR (location = warehouse AND quantity > 0)
-
January 10, 2017 at 12:06 pm #22989
khultquistIf you only have two locations, you can do this with 3 criteria lines, making use of 'Inventory Location' and 'Location On Hand'
-
January 11, 2017 at 10:03 am #22990
rvasquezActually we have 3 showroom locations and 3 warehouse locations
-
January 11, 2017 at 12:00 pm #22991
khultquistWith multiple locations, you can probably accomplish what you are trying by making it a Summary Search and using Summary Criteria, and some SQL formulas.
-
AuthorPosts
You must be logged in to reply to this topic.