You'll do a sum of locationquantityavailable for e...
# suitescript
m
You'll do a sum of locationquantityavailable for each item and filter to the right inventorylocation ids.