|
@@ -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);
|
|
|
}
|
|
|
}
|