edit-admin-export_biz_settle
This commit is contained in:
@@ -178,7 +178,7 @@ class Settle extends HD_Controller
|
||||
$biz_id = $this->input->get('id');
|
||||
$month = $this->input->get('month');
|
||||
$year = date('Y');
|
||||
!$month && $month = intval(date('m'));
|
||||
!$month && $month = intval(date('m',strtotime("-1 month")));;
|
||||
$where = [
|
||||
'biz_id' => $biz_id,
|
||||
'year' => $year,
|
||||
|
||||
@@ -702,7 +702,7 @@ class Orders extends HD_Controller
|
||||
];
|
||||
}
|
||||
}
|
||||
$sum = $this->app_liche_orders_model->sum('total_price', ['o_id'=>$params['id'],'status'=>1,'pay_price>'=>0]);
|
||||
$sum = $this->app_liche_orders_model->sum('total_price', ['o_id'=>$params['id'],'status'=>1,'pay_price <>'=>0]);
|
||||
$this->data['pay_price'] = $sum['total_price'];
|
||||
$this->data['need_price'] = $this->orders_v2_entity->recevable_price($params['id']);
|
||||
$this->data['list'] = $list;
|
||||
|
||||
Reference in New Issue
Block a user