浏览代码

Merge branch 'master' of ssh://git.dever.cc:10022/dever-product/churen

rabin 3 年之前
父节点
当前提交
0ccea46216
共有 1 个文件被更改,包括 4 次插入3 次删除
  1. 4 3
      tool/stats/lib/Manage.php

+ 4 - 3
tool/stats/lib/Manage.php

@@ -169,7 +169,7 @@ Class Manage
 	                } else {
 	                	$total_cash = 0;
 	                }
-	                
+
 	                 if ($v['status'] == 8 || $v1['status'] == 3) {
 	                    $num = $v1['num'];
 	                    $v['refund_cash'] = $v1['price']*$v1['num'];
@@ -207,6 +207,7 @@ Class Manage
 	                    $v['coupon_cash'] = 0;
 	                    $v['discount_cash'] = 0;
 	                }
+	                // print_R($total_cash);die;
 	                $d = array
                     (
                         $v['shop_type_name'],
@@ -234,9 +235,9 @@ Class Manage
 						$operdate,
 						$fdate,
 						$v['num'],
-						round($total_cash, 2),
+						sprintf('%01.2f',$total_cash),
 	                    round($v['price'], 2),
-	                    round($v['card_code_cash'], 2),
+	                    sprintf('%01.2f',$v['card_code_cash']),
 	                    round($v['wallet_cash'], 2),
 	                    round($v['coupon_cash'], 2),
 	                    round($v['discount_cash'], 2),