wugg 2 years ago
parent
commit
c428988fe8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/admin/controller/Allot.php

+ 1 - 1
app/admin/controller/Allot.php

@@ -461,7 +461,7 @@ class Allot extends Base
                             Db::rollback();
                             return error_show(2000,"超出库存数量");
                         }
-                        $stockinfo = Db::name("good_stock_info")->where(["bnCode"=>$value['bnCode'],"stockid"=>$stock['id'],"is_del"=>0])->find();
+                        $stockinfo = Db::name("good_stock_info")->where(["bnCode"=>$value['bnCode'],"stockid"=>$stock['id']])->find();
                          if($value['allot_num']>$stockinfo['balance_num']){
                             Db::rollback();
                             return error_show(2000,"超出bn库存数量");