wugg 9 månader sedan
förälder
incheckning
cc37d59cf2
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      app/admin/controller/Sale.php

+ 1 - 1
app/admin/controller/Sale.php

@@ -364,7 +364,7 @@ class Sale extends Base{
             if($value['is_comon']==1){
                 $tax = QrdInfo::where(["cxCode"=>$value['cxCode'],"is_comon"=>0])->findOrEmpty();
                 if($tax->isEmpty()==false){
-                	$rate = $tax->apay_fee/$tax->totalPrice;
+                	$rate = $tax->totalPrice==0?0: ($tax->apay_fee/$tax->totalPrice);
                 	  $value['plat_pay_fee']= round($value['totalPrice']* $rate,2);
                 }
             }