Does anyone know how to get “mine” as a location o...
# general
j
Does anyone know how to get “mine” as a location option for a filter? In my screenshot it shows for Location (Ship From) but not for Location (Ship To)
m
Don’t think Mine is an option for Ship to. In ship from, Mine would be if you as an employee are assigned a specific location on your employee record.
j
@Michael McNamara thanks for the response, I want to build a search that shows expected transfer orders based on the location you are assigned to. Using the “mine” field would make it easier to do so.
I am not sure of an easier way to do that without adding a search for each location 😞
m
Oh OK. So not sure if your doing a TO based search, but it would be a formula Like: “AND {transaction.location}={user.location} ”
j
I will try that now, thanks!
m
It’s a criteria formula. Try numeric formula: CASE WHEN {location}={user.location} THEN 1, ELSE 0 END Then set it to 1
j
message has been deleted
going to try as formula text
m
Sorry. Missed the “T” in THEN
Put the T in
and try again
j
message has been deleted
t
you don't need a comma after the 1 and it will only work as a formula numeric
also, suggest you use the .id in the formulas - eg location.id = user.location.id
as this resolves to a number in all cases
j
okay trying that now
do they still need to be in curly brackets?
👍 1
message has been deleted
m
Hey Tristen you were completely right about that. Good call on the id. I tried CASE WHEN {location.id} = {user.location.id} THEN 1 ELSE 0 END and it worked.
🎉 1
👍 2
j
thanks folks that worked, but not for the to location
im going to try changing the location.id to transferlocation.id and see what happens
Happy to report this worked! Thanks to you both ❤️
🙇‍♂️ 1
m
Congrats!!!
j
@Michael McNamara should this list also show sublocations? I want to add sublocations as well, any idea on how to include that?
m
I was just looking this up. I can see my sublocations on a transfer order. What might be your case is that your employee record needs to include all child locations if you are assigned a location.
Or the role needs to include the child locations. One or the other.