shish 4 лет назад
Родитель
Сommit
fd989d8ad9
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      biz-ghs/order/services/OrderService.php

+ 2 - 2
biz-ghs/order/services/OrderService.php

@@ -753,9 +753,9 @@ class OrderService extends BaseService
             $shopAdmin = ShopAdminClass::getById($shopAdminId, true);
             $shopAdmin->kdAmount = bcadd($shopAdmin->kdAmount, $amount, 2);
             $shopAdmin->save();
+            $yjAmount = $order->orderPrice ?? 0;
+            StatYjClass::addYj($main, $shop, $shopAdminId, $yjAmount);
         }
-        $yjAmount = $order->orderPrice ?? 0;
-        StatYjClass::addYj($main, $shop, $shopAdminId, $yjAmount);
 
         //客户资产变化
         if ($payWay == dict::getDict('payWay', 'debtPay')) {