edit-admin-export_biz_settle

This commit is contained in:
lccsw
2022-06-09 09:22:08 +08:00
parent f1ced873c0
commit 54cb413de1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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;