wufeng 2 anni fa
parent
commit
e569771e74
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      app/admin/controller/Sale.php

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

@@ -3855,7 +3855,7 @@ class Sale extends Base
                 //如果是库存品,只能由库管和库管-张凯旋操作
                 $own_roleid = Db::name('user_role')->where(['is_del'=>0,'uid'=>$uid,'status'=>1])->value('roleid',0);
                 if (!in_array($own_roleid, config('app.wsm_cgder_role'))) throw new \think\Exception('库存品只能由库管人员操作');
-            } elseif ($einfo['is_stock'] == 1 || $einfo['order_type'] == 3) {
+            } elseif ($einfo['is_stock'] == 0 || $einfo['order_type'] == 3) {
                 //非库存品和采返商品只能由供应商负责人操作
                 $personid = Db::name('supplier')
                     ->where(['code' => $einfo['supplierNo'], 'is_del' => 0])