|
|
|
|
@ -483,7 +483,7 @@ select combo_id as c_id,count(*) as sale_count from orders where status in(2,4)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($quanInfo['是否在有效内']===true and $quanInfo['TimeNuZTTextm']=="有效" and $quanInfo['ZT']==1){
|
|
|
|
|
if(!!$quanInfo and $quanInfo['是否在有效内']===true and $quanInfo['TimeNuZTTextm']=="有效" and $quanInfo['ZT']==1){
|
|
|
|
|
|
|
|
|
|
}else{
|
|
|
|
|
return \Yz::echoError1("此代金券不可用");
|
|
|
|
|
@ -502,9 +502,15 @@ select combo_id as c_id,count(*) as sale_count from orders where status in(2,4)
|
|
|
|
|
if($quanType===false or $quanInfo===false) return \Yz::echoError1("此代金券不可用");
|
|
|
|
|
if($quanType['TJXCXHX']!=1 ) return \Yz::echoError1("此代金券不可用");
|
|
|
|
|
if($quanType['MKJE']==0 or $quanType['MKJE']>=$true_price){
|
|
|
|
|
//抵扣代金券金额,折扣暂未实现
|
|
|
|
|
//抵扣代金券金额
|
|
|
|
|
if($quanType['YHLX']==1){//抵扣券
|
|
|
|
|
$true_price=($true_price-$quanInfo['JE'])>0 ? $true_price-$quanInfo['JE']:0;
|
|
|
|
|
}
|
|
|
|
|
if($quanType['YHLX']==2){//抵扣券
|
|
|
|
|
$true_price=number_format($true_price*$quanType['DZBL'],2, '.', '');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|