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