add-admin-order_status2
This commit is contained in:
@@ -66,7 +66,7 @@ class Orders extends HD_Controller
|
||||
}
|
||||
if ($value['list']) {
|
||||
foreach ($value['list'] as $key2 => $value2) {
|
||||
if($key2){
|
||||
if($key2 && $key2<21){
|
||||
$where_s = [];
|
||||
$key==1 && $where_s["{$t1}.payway"] = 0;//分期
|
||||
if(strlen($key) && !$key && $key2==1){ //已下定过滤退款
|
||||
@@ -95,6 +95,12 @@ class Orders extends HD_Controller
|
||||
if($key==4){ //交付需要开票后才显示
|
||||
$where_s["{$t1}.id in (select o_id from lc_receiver_order_status where pid_status=3 and status=1)"] = null;
|
||||
}
|
||||
if($key2==21){
|
||||
$where_s = [
|
||||
"{$t1}.id in (select o_id from lc_receiver_order_status where pid_status=0 and status=1)" => null, //已付定金
|
||||
"{$t1}.id not in (select o_id from lc_receiver_order_status where pid_status=0 and status=2)" => null //尾款未支付
|
||||
];
|
||||
}
|
||||
$where_s = array_merge($where,$where_s);
|
||||
$count2 = $this->receiver_orders_v2_model->count($where_s);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user