edit-admin-finish_order
This commit is contained in:
@@ -781,6 +781,7 @@ class Orders extends HD_Controller
|
||||
$last_p_row && $where['id <>'] = $last_p_row['id'];
|
||||
$is_pay = $this->app_liche_orders_model->sum('total_price',$where); //已支付金额
|
||||
if($need_price && $is_pay['total_price']>=$need_price){ //完成支付
|
||||
$this->app_liche_orders_model->update(['status'=>1],['o_id'=>$row['id'],'pid'=>0]);//主订单设置成支付
|
||||
$last_p_row && $this->app_liche_orders_model->update(['status'=>1],['id'=>$last_p_row['id']]);//完成未支付尾款
|
||||
$this->orders_status_entity->set_status($row['id'],0,2);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user