|
@@ -72,9 +72,14 @@ class SyncMjWarehouse extends Command {
|
72
|
72
|
$up['realPrice'] = $up['totalCost'] / $up['quantity'];
|
73
|
73
|
// $up['outPrice'] = ceil($up['realPrice'] * 1.15);
|
74
|
74
|
} else {
|
75
|
|
- $up['realPrice'] = 0;
|
|
75
|
+// $up['realPrice'] = 0;
|
76
|
76
|
// $up['outPrice'] = 0;
|
77
|
77
|
}
|
|
78
|
+ if(!$cost['outPrice']){
|
|
79
|
+ if(isset($up['realPrice'])){
|
|
80
|
+ $up['outPrice'] = ceil($up['realPrice']*1.15);
|
|
81
|
+ }
|
|
82
|
+ }
|
78
|
83
|
$up['cost'] = isset($sku['cost']) ? $sku['cost'] : 0;
|
79
|
84
|
//实际库存=库存-冻结
|
80
|
85
|
$up['quantity'] = $real_quantity;
|