shish 3 лет назад
Родитель
Сommit
81b3c365d6
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      biz-ghs/stat/classes/StatSaleClass.php

+ 2 - 0
biz-ghs/stat/classes/StatSaleClass.php

@@ -146,9 +146,11 @@ class StatSaleClass extends BaseClass
         $hdOrderList = HdOrderClass::getAllByCondition($hdWhere, null, '*');
         foreach ($hdOrderList as $hdKey => $hdOrder) {
             $actPrice = $hdOrder['mainPay'] ?? 0;
+            $cash = $hdOrder['cash'] ?? 0;
             $serviceFee = $hdOrder['serviceFee'] ?? 0;
             $sendCost = $hdOrder['sendCost'] ?? 0;
             $lsIncome = bcadd($actPrice, $lsIncome, 2);
+            $lsIncome = bcadd($lsIncome, $cash, 2);
             //退款取消的先不计算成本
             if ($actPrice > 0) {
                 $lsSendCost = bcadd($lsSendCost, $sendCost, 2);