소스 검색

Merge branch 'wugg-dev' of wugg/phpstock into version1.5

wugg 2 년 전
부모
커밋
a289b8e395
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/admin/controller/Sale.php

+ 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) {