StockedProductView not pulling all stocking locations


Would you happen to know why this function sometimes doesn’t return Jobsites?

I noticed that given some products, it is listing only the groups under the jobsite but not the jobsite itself, as it has done for other calls to products.


var items = StockedProductView.GetStockedProductsByBaseProductID(Product.GetProduct(productID, ProductType.Product).ProductID);

// Getting StockingLocation details
foreach ( var item in items){
  var site = StockingLocation.GetStockingLocation(item.StockingLocationID, false);
  // Save details, etc..