wugg 2 жил өмнө
parent
commit
325fb785d7

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

@@ -695,7 +695,7 @@ class Sale extends Base
                     }
                     $temp = Db::name('good_stock')
                         ->field('id,usable_stock,wait_out_stock')
-                        ->where(['spuCode' => $etid['spuCode'], 'wsm_code' => $cgdinfo['wsm_code']])
+                        ->where(['spuCode' => $etid['good_code'], 'wsm_code' => $cgdinfo['wsm_code']])
                         ->find();
                     	//非库存品 导入地址生成发货单时占用库存 可用库存进入待出库
                         if ($temp == false || ($temp['usable_stock'] - $num) < 0) {