shish 4 лет назад
Родитель
Сommit
44c081fbf1
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      console/controllers/StatKdController.php

+ 4 - 0
console/controllers/StatKdController.php

@@ -35,6 +35,10 @@ class StatKdController extends Controller
                 }
                 $payWay = $order['payWay'] ?? 0;
                 $amount = $order['actPrice'] ?? 0;
+                $refundPrice = $order['refundPrice'] ?? 0;
+                if ($refundPrice > 0) {
+                    $amount = bcadd($amount, $refundPrice, 2);
+                }
                 $shopId = $order['shopId'] ?? 0;
                 $shop = ShopClass::getLockById($shopId);
                 if (empty($shop)) {