Kirin 3 years ago
parent
commit
0b996ba3db
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/company/Goods.php

+ 1 - 1
app/admin/controller/company/Goods.php

@@ -134,7 +134,7 @@ class Goods extends AuthController
         if (!$this->adminInfo['store_id']) return app('json')->fail('门店铺货用通道');
         if ($where['in_stock'] < 1) return app('json')->fail('补货数量不能少于1');
         $info = SystemStoreStock::alias('a')->join("StoreProduct b", "a.product_id=b.id", "left")->where('a.bar_code', $where['bar_code'])->field('a.price,a.unique,a.in_stock,a.is_consumer,a.product_id,b.store_name,b.image,a.bar_code')->find();
-        if (!$info && $where['info'] != 1) return app('json')->fail('门店尚无库存无法减少');
+        if (!$info && $where['type'] != 1) return app('json')->fail('门店尚无库存无法减少');
         if (!$info) {
             $store_product = StoreProductAttrValue::where('type', 0)->where('bar_code', $where['bar_code'])->find();
             if (!$store_product)