Browse Source

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

rabin 2 years ago
parent
commit
0ccea46216
1 changed files with 4 additions and 3 deletions
  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),