|
|
@@ -261,6 +261,9 @@ class StatSaleClass extends BaseClass
|
|
|
$hdOrderList = HdOrderClass::getAllByCondition($hdWhere, null, '*');
|
|
|
foreach ($hdOrderList as $hdKey => $hdOrder) {
|
|
|
$actPrice = $hdOrder['mainPay'] ?? 0;
|
|
|
+ if ($hdOrder['tkPrice'] && $hdOrder['tkPrice'] > 0) {
|
|
|
+ $actPrice = bcsub($actPrice, $hdOrder['tkPrice'], 2);
|
|
|
+ }
|
|
|
$cash = $hdOrder['cash'] ?? 0;
|
|
|
$serviceFee = $hdOrder['serviceFee'] ?? 0;
|
|
|
$sendCost = $hdOrder['sendCost'] ?? 0;
|