Your Name 3 years ago
parent
commit
f4a81d54a1
1 changed files with 10 additions and 0 deletions
  1. 10 0
      tool/stats/lib/Manage.php

+ 10 - 0
tool/stats/lib/Manage.php

@@ -224,6 +224,16 @@ Class Manage
 		                    } else {
 		                    	$money = $v['refund_cash'];
 		                    }
+		                    if ($k1 == 0) {
+		                    	if ($ka) {
+		                    		$ka = $ka;
+		                    	}elseif ($money) {
+		                    		$money = $money;
+		                    	}
+		                    }else {
+		                    	$ka = 0;
+		                    	$money = 0;
+		                    }
 		                    $refund_cdate = '';
 		                    if ($v['shop_type'] == 1) {
 		                    	$refund = Dever::db('shop/sell_order_refund')->find(array('order_id'=>$v['id']));