shish 2 年 前
コミット
238d58d545
1 ファイル変更3 行追加0 行削除
  1. 3 0
      biz-ghs/stat/classes/StatSaleClass.php

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

@@ -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;