|
if(!Order::where('order_groupby',$order->order_groupby)->where('order_id','<>',$order->order_id)->where('order_is_complete','<>','R')->exists()){
|
|
if(!Order::where('order_groupby',$order->order_groupby)->where('order_id','<>',$order->order_id)->where('order_is_complete','<>','R')->exists()){
|
|
CouponDetail::where('coupon_detail_id',$item['coupon_id'])->update([
|
|
CouponDetail::where('coupon_detail_id',$item['coupon_id'])->update([
|
|
'coupon_detail_status'=>'ACTIVED',
|
|
'coupon_detail_status'=>'ACTIVED',
|