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

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

@@ -267,11 +267,11 @@ Class Manage
 							// $youhui = 0;
 							// print_R($v1);die;
 							if ($v['card_code_cash'] && $v['card_code_cash']>0){
-								$card_price = ($v['card_code_cash']/$v['oprice']*($val['price']*$dnum))*$v1['num'];
+								$card_price = round(($v['card_code_cash']/$v['oprice']*($val['price']*$dnum)),2);
 							} else {
 								$card_price = 0;
 							}
-							$wallet_price = ($v['wallet_cash']/$v['oprice']*($val['price']*$dnum))*$v1['num'];
+							$wallet_price = round(($v['wallet_cash']/$v['oprice']*($val['price']*$dnum)),2);
 							$goodsfu = 0;
 							if ($v1['discount_id']<=0) {
 								$youhui = 0;
@@ -282,6 +282,7 @@ Class Manage
 								} else {
 									$goodsfu = round($val['price']*$dnum-($card_price + $wallet_price),2);
 								}
+								// print_R($card_price);die;
 								
 							} else {
 								$act = Dever::db('act/discount')->find($v['discount_id']);