Your Name 3 年之前
父節點
當前提交
233fd31e35
共有 1 個文件被更改,包括 13 次插入7 次删除
  1. 13 7
      tool/stats/lib/Manage.php

+ 13 - 7
tool/stats/lib/Manage.php

@@ -175,14 +175,20 @@ Class Manage
 	                 if ($v['status'] == 8 || $v1['status'] == 3) {
 	                    $num = $v1['num'];
 	                    $refund_cash = $v1['price']*$v1['num'];
-	                    if ($v['card_code_cash'] >0) {
-	                    	if ($v['refund_cash'] <= $v['card_code_cash']) {
-	                    		$ka = $v['refund_cash'];
-	                    	} else {
-	                    		$ka = $v['card_code_cash'];
-	                    		$money = $v['refund_cash'] - $v['card_code_cash'];
-	                    	}
+	                    if ($v['refund_cash'] && $v['refund_cash']>0) {
+	                    	$money = $v['refund_cash'];
 	                    }
+	                    if ($v['card_code_cash'] && $v['card_code_cash'] >0) {
+	                    	$ka = $v['card_code_cash'];
+	                    }
+	                    // if ($v['card_code_cash'] && $v['card_code_cash'] >0) {
+	                    // 	if ($v['refund_cash'] <= $v['card_code_cash']) {
+	                    // 		$ka = $v['refund_cash'];
+	                    // 	} else {
+	                    // 		$ka = $v['card_code_cash'];
+	                    // 		$money = $v['refund_cash'] - $v['card_code_cash'];
+	                    // 	}
+	                    // }
 	                    // $refund = Dever::db('shop/sell_order_refund')->find(array('order_id'=>$v['id']));
 	                    // if ($refund)
 	                    $refund_status = '已退款';