فهرست منبع

Merge branch 'master' into minus

shish 1 سال پیش
والد
کامیت
a43df94de4
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      biz-ghs/stat/classes/StatSaleClass.php

+ 2 - 1
biz-ghs/stat/classes/StatSaleClass.php

@@ -310,6 +310,7 @@ class StatSaleClass extends BaseClass
         foreach ($hdOrderList as $hdKey => $hdOrder) {
             $actPrice = $hdOrder['mainPay'] ?? 0;
             $onlinePay = $hdOrder['onlinePay'] ?? 1;
+            $repeat = $hdOrder['repeat'] ?? 0;
 
             if ($hdOrder['tkPrice'] && $hdOrder['tkPrice'] > 0) {
                 $actPrice = bcsub($actPrice, $hdOrder['tkPrice'], 2);
@@ -326,7 +327,7 @@ class StatSaleClass extends BaseClass
             }
             $totalOrderNum++;
 
-            if ($onlinePay == 2 && floatval($cash) <= 0) {
+            if ($onlinePay == 2 && floatval($cash) <= 0 && $repeat == 1) {
                 $payCodeIncome = bcadd($payCodeIncome, $actPrice, 2);
                 $payCodeIncome = floatval($payCodeIncome);
             }