diff --git a/app/admin/logic/product_source_link/ProductSourceLinkLogic.php b/app/admin/logic/product_source_link/ProductSourceLinkLogic.php index c80b9f35..7137b9d5 100644 --- a/app/admin/logic/product_source_link/ProductSourceLinkLogic.php +++ b/app/admin/logic/product_source_link/ProductSourceLinkLogic.php @@ -119,7 +119,7 @@ class ProductSourceLinkLogic extends BaseLogic */ public static function outbound(array $info) { - $query = ProductSourceLinkInfo::where('product_id', $info['product']['product_id'])->where('current_nums', '>', 0); + $query = ProductSourceLinkInfo::where('product_id', $info['product']['product_id'])->where('warehouse_id', 1)->where('current_nums', '>', 0); if (!empty($info['is_store_order']) && $info['store_id']) { $query->where('store_id', $info['store_id'])->whereIn('types', [ProductSourceLinkInfo::TypeStoreIn, ProductSourceLinkInfo::TypeS2S]); } else {