dream 6 months ago
parent
commit
bcccf3486f
1 changed files with 6 additions and 1 deletions
  1. 6 1
      Themes/Seller/Order/oprefund_goods_do.html

+ 6 - 1
Themes/Seller/Order/oprefund_goods_do.html

@@ -78,7 +78,12 @@
 						 if($free_tongji < 0){
 							$free_tongji = 0;
 						  }
-						 $refund_one_money = round( $free_tongji/$total_quantity , 2)??0;
+						  if($free_tongji==0||$total_quantity==0){
+							$refund_one_money =0
+						  }else{
+							$refund_one_money = round( $free_tongji/$total_quantity , 2);
+						  }
+						
 						<!-- var_dump($free_tongji );
 						var_dump($total_quantity ); -->
 					?>