edit-plan-settle

This commit is contained in:
lccsw
2022-05-05 14:06:14 +08:00
parent eb20c3e463
commit 287ff561b4
2 changed files with 4 additions and 3 deletions
+3 -3
View File
@@ -91,9 +91,9 @@ class Biz extends HD_Controller
}
//统计前一个月利润
public function merage(){
public function merge(){
$size = $this->input->get('size');
!$page && $page = 1;
$page = 1;
!$size && $size = 5;
$where = [
@@ -154,7 +154,7 @@ class Biz extends HD_Controller
'manager_wage' => $biz_info['manager_wage'],
'commission' => $biz_info['commission']*$car_total,
];
$employee_wage = $biz_info['num'] ? ceil($car_total/$biz['num']) : 0;
$employee_wage = $biz_info['num'] ? ceil($car_total/$biz_info['num']) : 0;
$data['employee_wage'] = $employee_wage;
$data['price_total'] = $val['price_all']+$data['profix_car_after'];
$price_need = $data['price_total'] - $data['rent'] - $data['wat_ele'] - $data['employee_wage'] - $data['manager_wage'] - $data['commission'] - $data['price_trucking'];
+1
View File
@@ -38,6 +38,7 @@ class Plan extends CI_Controller
$plan[] = array('url' => base_url(array('plan', 'licheb', 'users_log')), 'interval' => 2);//顾问日志
$plan[] = array('url' => base_url(array('plan', 'biz', 'settle')), 'interval' => 1);
$plan[] = array('url' => base_url(array('plan', 'biz', 'merge')), 'interval' => 20); //合并结算
$plan[] = array('url' => base_url(array('plan', 'order', 'up_old_status')), 'interval' => 30); //更新旧订单状态
$plan[] = array('url' => base_url(array('plan', 'order', 'out_time')), 'interval' => 10); //未支付订单过期
$this->plan = $plan;