shish 2 жил өмнө
parent
commit
a8d05eb034

+ 3 - 1
biz-ghs/stat/classes/StatKdClass.php

@@ -247,7 +247,9 @@ class StatKdClass extends BaseClass
             $fromType = $hdOrder['fromType'] ?? 0;
 
             if ($onlinePay == dict::getDict('onlinePay', 'yes')) {
-                //使用在线支付
+                //现金 和 微信支付宝付款,微信支付宝还存在退款情况
+                $tkPrice = $hdOrder['tkPrice'] ?? 0;
+                $mainPay = bcsub($mainPay, $tkPrice, 2);
                 $incomeList['system']['amount'] = bcadd($incomeList['system']['amount'], $mainPay, 2);
                 $incomeList['system']['num'] = bcadd($incomeList['system']['num'], 1);
                 $incomeList['system']['category']['ls']['amount'] = bcadd($incomeList['system']['category']['ls']['amount'], $mainPay, 2);