|
|
@@ -894,10 +894,10 @@ class StatSaleClass extends BaseClass
|
|
|
$hdOrderList = HdOrderClass::getAllByCondition($hdWhere, null, '*');
|
|
|
foreach ($hdOrderList as $hdKey => $hdOrder) {
|
|
|
$actPrice = $hdOrder['mainPay'] ?? 0;
|
|
|
- if ($actPrice <= 0) {
|
|
|
+ $cash = $hdOrder['cash'] ?? 0;
|
|
|
+ if ($actPrice <= 0 && $cash <= 0) {
|
|
|
continue;
|
|
|
}
|
|
|
- $cash = $hdOrder['cash'] ?? 0;
|
|
|
$lsIncome = bcadd($actPrice, $lsIncome, 2);
|
|
|
$lsIncome = bcadd($lsIncome, $cash, 2);
|
|
|
$orderSn = $hdOrder['orderSn'] ?? '';
|