|
|
@@ -135,7 +135,6 @@ class StatKdClass extends BaseClass
|
|
|
],
|
|
|
],
|
|
|
'mt' => ['amount' => 0, 'num' => 0, 'name' => '美团'],
|
|
|
- 'stockOut' => ['amount' => 0, 'num' => 0, 'name' => '调拨出库'],
|
|
|
'other' => [
|
|
|
'amount' => 0,
|
|
|
'num' => 0,
|
|
|
@@ -149,22 +148,6 @@ class StatKdClass extends BaseClass
|
|
|
],
|
|
|
];
|
|
|
|
|
|
- //调拨出库
|
|
|
- $where = [];
|
|
|
- $where['outMainId'] = $mainId;
|
|
|
- $where['addTime'] = ['between', [$currentStartTime, $currentEndTime]];
|
|
|
- $stockOutList = StockOutOrderClass::getAllByCondition($where, null, '*');
|
|
|
- if (!empty($stockOutList)) {
|
|
|
- $stockOutNum = count($stockOutList);
|
|
|
- $incomeList['stockOut']['num'] = $stockOutNum;
|
|
|
- $totalOutAmount = 0;
|
|
|
- foreach ($stockOutList as $stockOut) {
|
|
|
- $currentOutAmount = $stockOut['price'] ?? 0;
|
|
|
- $totalOutAmount = bcadd($totalOutAmount, $currentOutAmount, 2);
|
|
|
- }
|
|
|
- $incomeList['stockOut']['amount'] = $totalOutAmount;
|
|
|
- }
|
|
|
-
|
|
|
//批发开单
|
|
|
$where = ['mainId' => $mainId, 'status' => ['in', [OrderClass::ORDER_STATUS_UN_SEND, OrderClass::ORDER_STATUS_SENDING, OrderClass::ORDER_STATUS_COMPLETE]]];
|
|
|
$where['payTime'] = ['between', [$currentStartTime, $currentEndTime]];
|