Browse Source

库存成本修改outPrice逻辑

shensong 5 years ago
parent
commit
70a57a4bc2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/Console/Commands/SyncMjWarehouse.php

+ 1 - 1
app/Console/Commands/SyncMjWarehouse.php

@@ -60,7 +60,7 @@ class SyncMjWarehouse extends Command {
60 60
             //2.更新商品库存总成本(有可能为空)
61 61
             //3.计算商品真实价格
62 62
             //4.计算商品外部价格
63
-            $cost = DB::table('goods_skus')->where('code', $code)->select('referenceCost', 'is_weigh')->first(); //获取规格成本/是否称重
63
+            $cost = DB::table('goods_skus')->where('code', $code)->select('referenceCost', 'is_weigh', 'outPrice')->first(); //获取规格成本/是否称重
64 64
             if($cost){
65 65
                 $quantity = $cost->is_weigh == 1 ? $sku['quantity']/2 : $sku['quantity']; //对应规格数量
66 66
                 //实际库存=库存-冻结