Browse Source

Merge branch 'dev_wf' of wugg/phpstock into version1.5

wufeng 2 years ago
parent
commit
abc0e4b7ad
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/command/ImportOrderFromCHandleData.php

+ 1 - 0
app/command/ImportOrderFromCHandleData.php

@@ -648,6 +648,7 @@ class ImportOrderFromCHandleData extends Command
 
         $merge_num = Db::name("purchease_order")
             ->where(["bkcode" => $cgdinfo['bkcode'], "order_type" => $outinfo['order_type'], "is_del" => 0])
+            ->where('order_source', '<>', 0)//0备库单不计算在内
             ->field("sum(send_num)-sum(th_num) as num")
             ->find();
         $cgd['balance_num'] = $cgd['total_num'] - $merge_num['num'];